Ask A Question

Notifications

You’re not receiving notifications from this thread.

What is the purpose of node_modules folder in rails 6?

Safwan SM asked in Rails

What is the purpose of node_modules folder in rails 6?

Reply

node_modules is not rails specific actually.

Since rails 6 is using webpack as the assets manager instead of sprockets, you get this node_modules folder with all dependencies of the libs specified in you package.json file.

It is created when using the npm or yarn command to download and host in your project all the javascript libraries required by your project.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.