question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm >= 5's prune reinstalls ignored node modules

See original GitHub issue

Since version 5, npm prune reinstalls all missing dependencies, this breaks electron-packager’s --ignore option when --no-prune is not set.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Feb 2, 2018

The current workaround is to set --no-package-manager.

0reactions
jean-emmanuelcommented, Feb 2, 2018

Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-prune
Description. This command removes "extraneous" packages. If a package name is provided, then only packages matching one of the supplied names are removed....
Read more >
How to clean up node modules? | by Mario Kandut | Medium
There are two ways to clean up the node_modules folder: Delete the folder and reinstall; Use npm prune (starting with npm version 6)....
Read more >
npm command to uninstall or prune unused packages in Node.js
Run npm prune to remove modules not listed in package.json . From npm help prune : This command removes "extraneous" packages. If a...
Read more >
How to clean up node modules? - Mario Kandut
There are two ways to clean up the node_modules folder: Delete the folder and reinstall; Use npm prune (starting with npm version 6) ......
Read more >
yarn install
If you are used to using npm you might be expecting to use --save or --save-dev . ... Use this flag to instruct...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found