-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm prune --production rebuilds packages installed from github #1422
Comments
Same issue, here's my heroku build log. tl:dr
|
In my case it fails to build native module and as the result after pruning (which doesn't fails for some reason) I have dependency which is broken completely. |
Looking at the output of
Likely because |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
@darcyclarke can you just reopen this? |
How
Current Behavior
npm prune --production
re-runsinstall
andpostinstall
scripts (at least) for packages installed from GitHub withgithub:
prefix.Steps to Reproduce
install
orpostinstall
script, for instance this:package-lock.json
in place do:Expected Behavior
npm prune --production
only removed packages and doesn't cause re-building of native packages.Other details
This doesn't happen when installing the same package from NPM registry.
References
Initially reported at versatica/mediasoup#417
The text was updated successfully, but these errors were encountered: