cli icon indicating copy to clipboard operation
cli copied to clipboard

feat(config): Add --prune config option

Open KochiyaOcean opened this issue 5 years ago • 4 comments

Closes #3906

As the ticket above says, the npm i command with --package-lock false option has changed its behavior since npm@7, which no longer prevents automatic pruning and currently there is no option to disable the automatic pruning process.

This pull requests add a new config option prune, when it's set to false, the automatic pruning will be disabled. With this option user will be able to install packages without getting the node_modules folder pruned.

Also the pull requests updated the description of package-lock option to match the current behavior of the config

KochiyaOcean avatar Oct 17 '21 15:10 KochiyaOcean

Rebased branch to resolve conflicts

KochiyaOcean avatar Nov 11 '21 02:11 KochiyaOcean

This would be very nice to have. Otherwise people running multiple npm install are stuck using npm@6 (as that version doesn't have aggressive pruning).

neutraali avatar Mar 08 '22 08:03 neutraali

Any progress on this? Would be really nice to get out from under npm@6...

neutraali avatar Aug 15 '22 08:08 neutraali

I known this is a old issue but any news on it because I don't think there is an other solution for this ?

rommni avatar Aug 27 '24 14:08 rommni