Best practice for nodejs deployment – Directly moving node_modules to server or run npm install command
Running npm install in production server cannot be done in certain scenario (lack of compiling tools, restricted internet access, etc…) and also if you have to deploy the same project on multiple machines, can be a waste of cpu, memory and bandwidth. You should run npm install –production on a machine with the same libraries … Read more