Sitelet https://github.com/nodejs/node/issues/433
Skip to content

node-gyp rebuild not working #433

Description

@caninojories

gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@1.0.1 | 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"

Activity

  1. rvagg commented on Jan 15, 2015

    @rvagg
    Member

    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 npm link if you want to make it node-gyp global).

  2. rvagg commented on Jan 15, 2015

    @rvagg
    Member

    leaving this issue open as a reminder that we need to do this

  3. caninojories commented on Jan 15, 2015

    @caninojories
    Author

    thanks

  4. reklatsmasters commented on Jan 15, 2015

    @reklatsmasters
    Contributor

    windows, does not work

    gyp ERR! stack Error: 404 status code downloading 32-bit node.lib

  5. bnoordhuis commented on Jan 15, 2015

    @bnoordhuis
    Member

    @reklatsmasters That should have been fixed by 5de334c.

  6. ralphtheninja commented on Jan 15, 2015

    @ralphtheninja

    @bnoordhuis Cool. But it's not in v1.0.1 right?

  7. bnoordhuis commented on Jan 15, 2015

    @bnoordhuis
    Member

    @ralphtheninja Nope, but it will be in v1.0.2.

  8. ralphtheninja commented on Jan 16, 2015

    @ralphtheninja

    @rvagg Thanks for the tip with the link. I had to do

    $ cd /usr/local/lib/iojs-v1.0.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp
    $ npm link -f
    

    To get rid of the warning

    npm ERR! Linux 3.13.0-44-generic
    npm ERR! argv "/usr/local/bin/iojs" "/usr/local/bin/npm" "link"
    npm ERR! node v1.0.1
    npm ERR! npm  v2.1.18
    npm ERR! path /usr/local/bin/node-gyp
    npm ERR! code EEXIST
    
    npm ERR! Refusing to delete: /usr/local/bin/node-gyp not in /usr/local/lib/iojs-v1.0.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp
    File exists: /usr/local/bin/node-gyp
    Move it away, and try again. 
    
  9. rvagg commented on Jan 17, 2015

    @rvagg
    Member
  10. rvagg commented on Jan 17, 2015

    @rvagg
    Member

    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

    npm install pangyp -g to get back the functionality you need while we wait if you are doing addon dev.

  11. Fishrock123 commented on Jan 30, 2015

    @Fishrock123
    Contributor

    @caninojories please re-open if you are still having issues post-pangyp. :)

  12. leecade commented on Mar 10, 2015

    @leecade

    👍

  13. liyingzh commented on Mar 27, 2015

    @liyingzh
    gyp info it worked if it ends with ok
    gyp info using node-gyp@1.0.3
    gyp info using node@1.6.3 | linux | x64
    gyp http GET https://iojs.org/dist/v1.6.3/iojs-v1.6.3.tar.gz
    gyp http 404 https://iojs.org/dist/v1.6.3/iojs-v1.6.3.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.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:246:14)
    gyp ERR! stack     at emitOne (events.js:82:20)
    gyp ERR! stack     at Request.emit (events.js:166:7)
    gyp ERR! stack     at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/request/request.js:1139:10)
    gyp ERR! stack     at emitOne (events.js:77:13)
    gyp ERR! stack     at ClientRequest.emit (events.js:166:7)
    gyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:410:21)
    gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
    gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:300:20)
    gyp ERR! stack     at emitOne (events.js:77:13)
    gyp ERR! System Linux 3.13.0-45-generic
    gyp ERR! command "/usr/local/bin/iojs" "/usr/local/bin/node-gyp" "rebuild" "--debug"
    gyp ERR! cwd /home/liying/workspace/node-addon-examples/1_hello_world/node_0.12
    gyp ERR! node -v v1.6.3
    gyp ERR! node-gyp -v v1.0.3
    gyp ERR! not ok 
    

    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!

  14. 10 remaining items

  15. russfrisch commented on May 14, 2015

    @russfrisch

    @rickdog Thank you! You're a life saver.

  16. binarykitchen commented on May 14, 2015

    @binarykitchen

    thanks @rickdog, but still, this should be fixed because i dislike installing global npm modules

  17. added a commit that references this issue on Jul 10, 2015
  18. gagern commented on Jul 10, 2015

    @gagern
    Contributor

    If this affects a package being installed on Travis, then often it's due to npm install -g npm being invoked in some form at some point. Since the version of npm shipped with iojs works just fine, one possible solution is omitting that install, or at least making it conditional so it gets skipped if $TRAVIS_NODE_VERSION starts with iojs. Example:

    before_install: |
        case ${TRAVIS_NODE_VERSION} in
            iojs*)
                echo "Not upgrading npm for iojs."
                ;;
            *)
                npm update -g npm
                ;;
        esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions