-
Notifications
You must be signed in to change notification settings - Fork 262
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
node-gyp failure with npm 5.8.0 #362
Comments
There is a fix in place for this at npm/npm#20276! |
Per comment from @nicolasnoble -
|
Right, we probably don't want to just wait on npm to have an update for this. There will be people out there in production who have npm 5.8.0 installed, and they will fail to install node-pre-gyp enabled packages because of this issue without understanding why. It'd be a better user experience to have node-pre-gyp workarounding bad installations of npm. |
Looks like npm is moving to fix this (npm/npm#20276), so I'm hesitant to apply a workaround in node-pre-gyp since I presume it is easier to upgrade npm than it is to upgrade node-pre-gyp (given node-pre-gyp needs to be bundled). |
This was fixed in npm/npm@cfe562c and is part of the 6.0.0 release (with a possible backport planned), confirmed locally that the error is no longer present (double confirmed with no global installation of node-gyp). Closing since it seems unlikely we'll add a fix to the node-gyp search function every time a bug is introduced via npm. |
Hey! I just ran into this while using npm 5.8.0 and was able to fix this issue by doing:
Thanks for making this issue @mapsam! |
Right, node 8.11.2 is still pinned on npm 5.6.0 when installing it fresh, so it seems this issue is going to stay relevant for anything that installs nodejs with the npm associated with it; only node 10 is pinned on npm 6 right now. This means that any CI that uses nvm for version switching will have this bug here. Right now for gRPC we are installing node-gyp globally in our CI to alleviate the problem, but it's fairly sad to have to do this. |
node-pre-gyp fails in the node-gyp step with the following error (example using the vtquery module):
Stack trace
It appears this is an issue with the most recent npm release, version 5.8.0, which was released on 03/08/2018 and removed the node-gyp module unexpectedly. npm/npm#20163. The following path is created in node-pre-gyp with the assumption that node-gyp exists in npm.
We'll continue to monitor over there to learn whether we need a fix here or if we can just update to a future version.
cc @springmeyer @millzpaugh
The text was updated successfully, but these errors were encountered: