Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does npm install package twice?

Tags:

node.js

npm

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?

like image 901
slideshowp2 Avatar asked Nov 01 '16 06:11

slideshowp2


1 Answers

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

like image 155
Shriram Manoharan Avatar answered Sep 17 '22 14:09

Shriram Manoharan