FS#50532 - [nodejs] Nodejs v6.5 is not released yet and breaks node-gyp rebuild

Attached to Project: Community Packages
Opened by Andreas Hjortland (Dr_Deadmeat) - Saturday, 27 August 2016, 06:58 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 29 August 2016, 15:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
It seems that version 6.5 is not out on the node servers (only tagged in git) which breaks node-gyp rebuild which is commonly used when installing packages with native modules.

Additional info:
* version 6.5

output from node-gyp rebuild command
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.5.0 | linux | x64
gyp http GET https://nodejs.org/download/release/v6.5.0/node-v6.5.0-headers.tar.gz
gyp http 404 https://nodejs.org/download/release/v6.5.0/node-v6.5.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 response downloading https://nodejs.org/download/release/v6.5.0/node-v6.5.0-headers.tar.gz
gyp ERR! stack at Request.<anonymous> (/usr/lib/node_modules/node-gyp/lib/install.js:210:14)
gyp ERR! stack at emitOne (events.js:101:20)
gyp ERR! stack at Request.emit (events.js:188:7)
gyp ERR! stack at Request.onRequestResponse (/usr/lib/node_modules/node-gyp/node_modules/request/request.js:954:10)
gyp ERR! stack at emitOne (events.js:96:13)
gyp ERR! stack at ClientRequest.emit (events.js:188:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:472:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:105:23)
gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:361:20)
gyp ERR! stack at emitOne (events.js:96:13)
gyp ERR! System Linux 4.7.2-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/sbin/node-gyp" "rebuild"
gyp ERR! cwd /home/andreas
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok


Steps to reproduce:
Upgrade to version 6.5 and run node-gyp rebuild and you will see that it breaks. I tried to install the bcrypt package which failed because of this.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 29 August 2016, 15:33 GMT
Reason for closing:  None
Additional comments about closing:  Now released
Comment by Andreas Hjortland (Dr_Deadmeat) - Saturday, 27 August 2016, 07:07 GMT
I forgot to add, if you just run node-gyp rebuild you will get some errors, but not 404. I downgraded the package and get this error when I just run the rebuild command:

> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.4.0 | linux | x64
gyp info spawn /usr/sbin/python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/andreas/workspace/todoapp/api/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/andreas/.node-gyp/6.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/andreas/.node-gyp/6.4.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/andreas/workspace/todoapp/api',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /home/andreas/workspace/todoapp/api) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.7.2-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/sbin/node-gyp" "rebuild"
gyp ERR! cwd /home/andreas/workspace/todoapp/api
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Comment by Martin Minka (k2s) - Monday, 29 August 2016, 08:22 GMT
from https://github.com/nodejs/node/issues/8314:

"The build is done, just not officially available yet, as we don't release on Friday or the weekend. It will be available on Monday or Tuesday. The best place to look for releases is the official blog and Twitter."
Comment by Andreas Hjortland (Dr_Deadmeat) - Monday, 29 August 2016, 12:34 GMT
Thanks for the link.

Even so, we probably shouldn't update the arch-package until the build is officially available so that we don't break things unnecessary even though it is relatively easy to downgrade and then hold packages.

If the node foundation are going to release today or tomorrow it might not be worth the hassle to roll-back the package, but if it might take some time I think we should consider rolling it back temporarily until 6.5 is officially released.
Comment by Andreas Hjortland (Dr_Deadmeat) - Monday, 29 August 2016, 15:13 GMT
It seems that node has updated the binary distribution packages now, so if you previously had held back node, you can update now https://twitter.com/nodejs/status/770261007532957696

Loading...