Skip to content
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 source url is wrong #546

Closed
alandarev opened this issue Dec 13, 2014 · 4 comments
Closed

Node source url is wrong #546

alandarev opened this issue Dec 13, 2014 · 4 comments

Comments

@alandarev
Copy link

I am trying to compile js-bson[1], where node source is required. The issue is that GYP tries to download the node source code from wrong location (npm repository instead of node):

js-bson]$ make
node-gyp clean
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.33 | linux | x64
gyp info ok 
node-gyp configure build
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.33 | linux | x64
gyp http GET https://github.com/npm/npm/releases/v0.10.33/node-v0.10.33.tar.gz
gyp http 404 https://github.com/npm/npm/releases/v0.10.33/node-v0.10.33.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 404 status code downloading tarball

As you can see, it tries to download Node from NPM, and I have no clue why.


Arch Linux
Node: v0.10.33
NPM: 2.1.13
node-gyp: 1.0.1

[1] - https://github.com/mongodb/js-bson

@Ajnasz
Copy link

Ajnasz commented Dec 13, 2014

It's a bug in npm itself: npm/npm#6923

@othiym23
Copy link
Contributor

I don't think this is a bug in npm, but it's maybe one on www.npmjs.com, and it's not really a bug there, either – it's just npm and node-gyp having incompatible expectations. See npm/npm#6923 for details, but in short the old redirect from npmjs.org/dist/ to nodejs.org/dist/ won't work unless or until there's some way to ensure new versions of npm are added to the directory (nobody at npm now can do that). In the short term, node-gyp should be updated to look to nodejs.org instead of npmjs.org. I'll probably float a patch to the node-gyp bundled in npm for now.

@kenany
Copy link

kenany commented Dec 13, 2014

@othiym23 node-gyp does use nodejs.org

@othiym23
Copy link
Contributor

This is all me trying to figure out what's going on from my phone. Fixed in npm/npm#cf7aeae3c3a24e48d3de4006fa082f0c6040922a and published as npm@2.1.14. It's fine to close this issue now, @TooTallNate. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants