[FIXED] NPM prune after NPM ci

Issue

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

Solution

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.

Answered By – madmed

Answer Checked By – Katrina (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published