TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
453 stars 141 forks source link

Doesn't build on Windows with IO.JS #27

Closed vitaly-t closed 9 years ago

vitaly-t commented 9 years ago

Trying to get the latest 1.0.1 under IO.JS 1.6.2 (64-bit), getting the following on Windows 8.1

This is my only current set up, it may be failing in other set-ups also.

D:\Temp\test\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Program Files\iojs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (rebuild)
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> (C:\Program Files\iojs\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 (C:\Program Files\iojs\node_modules\npm\node_modules\request\request.js:1176: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 Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\iojs\\node.exe" "C:\\Program Files\\iojs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Temp\test\node_modules\ref
gyp ERR! node -v v1.6.2-nightly20150323849319a260
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\iojs\\node.exe" "C:\\Program Files\\iojs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ref"
npm ERR! node v1.6.2-nightly20150323849319a260
npm ERR! npm  v2.7.1
npm ERR! code ELIFECYCLE

npm ERR! ref@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.0.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\Temp\test\npm-debug.log

This issue doesn't occur when using Node.JS 0.12.1

TooTallNate commented 9 years ago

gyp ERR! stack Error: 404 status code downloading tarball

This happens when you've upgraded npm/node-gyp after the io.js installation. Currently, a fork is used in io.js for node-gyp, so you have to use that version rather than the official version.