Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM prune after NPM ci

I have an innocent question :is there some interest to do a npm prune after a npm ci ? For me npm ci seems to be sufficient, no ?

Thanks by advance

like image 862
Hulkito Nol Avatar asked Oct 17 '25 15:10

Hulkito Nol


1 Answers

since 'npm ci' removes the existing 'node_modules' before installing, there is no need to prune.

Npm prune removes extraneous packages installed inside your node_modules folder that aren't defined inside the package.json. This can not happen when you go from an empty node_modules folder.

like image 141
madmed Avatar answered Oct 21 '25 22:10

madmed