-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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 rebuild not working #433
Comments
yes, this is a problem with node-gyp upstream not supporting io.js yet, we'll be submitting a patch asap but for now you can use the node-gyp that comes bundled with io.js: /usr/local/lib/node_modules/npm/node_modules/node-gyp/ (you could go into that directory and |
leaving this issue open as a reminder that we need to do this |
thanks |
windows, does not work
|
@reklatsmasters That should have been fixed by 5de334c. |
@bnoordhuis Cool. But it's not in
|
@ralphtheninja Nope, but it will be in v1.0.2. |
@rvagg Thanks for the tip with the link. I had to do
To get rid of the warning
|
Also just published a fork to give Nate a bit of time to digest and act on the above (and also provide us with a path forward if we can't get a merge): https://github.com/rvagg/pangyp
|
@caninojories please re-open if you are still having issues post- |
👍 |
why https://iojs.org/dist/v1.6.3/iojs-v1.6.3.tar.gz? the latest is https://iojs.org/dist/v1.6.2/iojs-v1.6.2.tar.gz! |
Which version did you install and how? (what's |
@aredridel git clone io.js git, then build and make install
|
@liyingzh The latest officially released is 1.6.2, yes. However, the repo get's bumped to the next patch as soon as a version gets released, to say that it is a dev version of what will (probably be*) the next version. *except in the case that we end up doing a minor version bump due to |
Thank for the info. My solution: checkout v0.1.6.2, then build. |
yes v0.1.6.2 works fine |
gyp WARN install got an error, rolling back install |
@locomote-sam Seems to be the same issue as the OP reported and should be fixed by using the node-gyp that comes with io.js. Did you install io.js first and then installed node.js on top of it? If you are using the homebrew build, you should report an issue there; they chopped up the build pretty bad, I believe. |
Is there a workaround for this issue? I'm getting:
Maybe, just manually copy |
I experience this too on Mac OS X and iojs v1.8.1:
|
https://www.npmjs.com/package/node-gyp-install for downloading manually iojs libs for node-gyp |
@rickdog Thank you! You're a life saver. |
thanks @rickdog, but still, this should be fixed because i dislike installing global npm modules |
See nodejs/node#433 for more details Since iojs and node are going to merge eventually, this won't be a problem for too long..
The problem with node-gyp not working with iojs can be solved by using the version shipped with iojs, not the version from the latest npm we install separately. See nodejs/node#433 for details. So we update npm to latest upstream only for old versions of node.js, not for the current version or for iojs.
If this affects a package being installed on Travis, then often it's due to before_install: |
case ${TRAVIS_NODE_VERSION} in
iojs*)
echo "Not upgrading npm for iojs."
;;
*)
npm update -g npm
;;
esac |
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
Make sure to only update npm in the 0.8 and 0.10 versions to not run into this issue: nodejs/node#433
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp http GET http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz
gyp http 404 http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading tarball
gyp ERR! stack at Request. (/usr/local/lib/node_modules/node-gyp/lib/install.js:246:14)
gyp ERR! stack at Request.emit (events.js:117:20)
gyp ERR! stack at Request.onRequestResponse (/usr/local/lib/node_modules/node-gyp/node_modules/request/request.js:1255:10)
gyp ERR! stack at ClientRequest.emit (events.js:95:17)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:399:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:89:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:290:20)
gyp ERR! stack at Socket.emit (events.js:95:17)
gyp ERR! stack at readableAddChunk (_stream_readable.js:143:16)
gyp ERR! stack at Socket.Readable.push (_stream_readable.js:106:10)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
The text was updated successfully, but these errors were encountered: