Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

What is the purpose of node_modules folder in rails 6?

Rails • Asked by Safwan SM

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.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.