-
Notifications
You must be signed in to change notification settings - Fork 77
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
Support npm 7 #128
Support npm 7 #128
Conversation
Instead use npm_config_* which works as far back as npm > 0.1.7. It translates command line flags to environment variables, where: --foo becomes npm_config_foo='true' --no-foo becomes npm_config_foo='' --foo=false becomes npm_config_foo=''
This comment has been minimized.
This comment has been minimized.
Wrote
|
I.e. when running `npm install` in the working directory of a project that uses prebuild-install, you must now run a more explicit `npm install --build-from-source`. This is necessary to support npm 7, where we do not have enough information to automatically determine it and would erroneously skip downloads on normal installs.
Thank you for tackling this Vincent. https://github.com/npm/cli/blob/latest/CHANGELOG.md#all-lifecycle-scripts suggests we should expect |
Aye, that's what I ended up doing in this PR. With |
The lack of standalone install might be a bit annoying for local development e.g. can no longer just run A possible workaround for local development might be to patch-bump the |
@lovell is that a blocker for you, and why is |
@vweevers No blocker, it's only a small change to my development workflow. The benefits to end users far outweigh this, which is where our focus should lie. |
Not squashing this, because the individual commit descriptions (especially ddb8f69) are useful. |
I forgot @ralphtheninja released a new version in the mean time, I should have rebased, commits are now out of order. Sorry. |
I think in this case a rebase and force push to master is acceptable. Otherwise people will be confused why commits with breaking changes are listed before 5.3.6 (although we have a changelog now but not all folks read that). Do you agree @lovell @ralphtheninja? |
Done |
Sharp 0.26.3 updates prebuild-install to ^6.0.0 which fixes an incompatibility with NPM 7. See lovell/sharp#2419 and prebuild/prebuild-install#128
Closes #108.