All threads / What is the purpose of node_modules folder in rails 6?

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?

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.

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.