Tuesday 7 February 2017

What is the "node_modules" directory for in my Express web app?

I am guessing that when you make package.json for your web app, and you want to deploy your web app on another server, all you have to do is zip your web app, not including the node_modules directory, and all you simply do is "npm install" and you got your web app on another server with ease. Is this correct? If the web app installs all its dependancies in its own directory, doesnt then what if there are multiple web apps on a server, doesnt it make sense to install the modules in /usr/bin for example where they all share the libs? I feel I am missing something here...

Submitted February 07, 2017 at 05:50PM by mineralwatersoda

No comments:

Post a Comment