-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fails on Windows when tarPath
is overridden manually
#1924
Comments
As observed the As an aside, |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node-gyp
version 3.8.0appmetrics
Verbose output (from npm or node-gyp):
We are installing
appmetrics
, a package requiring the compilation of native code, on Windows. We have the location of the Node.js headers tarball overridden, so instead ofcurl
ing https://nodejs.org/dist/v10.16.3/node-v10.16.3-headers.tar.gz, we have done something likenpm config set tarball C:\node-v10.16.3-headers.tar.gz
, as suggested in #1133.From the code we see that if we are on Windows and have overridden the tarball location by setting
tarPath
,node-gyp
:node.lib
, populatingcontentShasums
with its SHA256 hash (downloadNodeLib
)expectShasums
(downloadShaSums
, which is not called)deref
) - so it compares a valid SHA256 withundefined
and fails.Compare with this output if I
npm config delete tarball
:when it works
The text was updated successfully, but these errors were encountered: