I run npm install to install my dependencies.
At the first time, some package install failed.
I ran npm install again.
Will npm reinstall every dependency again or just the package not be installed?
asked Nov 1, 2016 at 6:17
Lin Du
104k138 gold badges340 silver badges574 bronze badges
2 Answers 2
Running npm install apart from the first time installs only the missing packages and those that need update.
As per stian's input, refer docs.npmjs.com/cli/install#algorithm
Lin Du
104k138 gold badges340 silver badges574 bronze badges
answered Nov 1, 2016 at 6:29
Shriram Manoharan
5856 silver badges15 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Running npm install after the first time only installs missing packages or updates existing ones.
tanmoy
1,5861 gold badge13 silver badges35 bronze badges
Comments
lang-js
node_modulesdirectory. But at second time, willnpmreplace the packages which existed?