angularjs - Why is it necessary to run 'npm install' when I already have all the dependence in node_module folder -


why necessary run 'npm install' when have dependence in node_module folder.

after running 'npm install' on machine, want setup same project on machine, why require run 'npm install' again when have downloaded dependence in node_module folder?

npm install extract dependencies package.json, download , save them in node_modules folder. don't need run npm install again , again if have installed dependencies locally.

when ever installs new dependency run npm install <package-name> --save , why --save first time? because adds new installed dependency on package.json. never push node_modules our git repo updated package.json pushed repo. in case if new person pulls code repo going run npm install , dependencies mentioned on package.json going available on project locally. thats small intro why use package.json hope helps.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -