These are chat archives for redguide/nodejs

10th
Sep 2015
Graham Weldon
@predominant
Sep 10 2015 07:50
Hey folks.
Anyone notice the nodejs.org website is now redirecting all http:// traffic to https:// with 301?
If anyone has installed nodejs from package, and needs to do npm installs for things that require compilation (downlaoding nodejs source) then it fails as the URL is http://
Not sure what I can do about that.. but created a pull request for changing the download URL for the source install method.
Barthélemy Vessemont
@BarthV
Sep 10 2015 09:06
hi
My dev team is also hitting https issue this morning
We probably need to fix some url headers somewhere
but I didn't have tested this so far
Graham Weldon
@predominant
Sep 10 2015 09:16
redguide/nodejs#98
@BarthV : ^
Barthélemy Vessemont
@BarthV
Sep 10 2015 09:16
ok
quite obvious fix
:)
merged
Graham Weldon
@predominant
Sep 10 2015 09:41
That fixes basic install.
Packages referenced for package install have an issue though
Barthélemy Vessemont
@BarthV
Sep 10 2015 09:54
bundle exec kitchen converge package-ubuntu-1404 is ok for me
vagrant@package-ubuntu-1404:~$ node -v
v0.10.40
vagrant@package-ubuntu-1404:~$ npm -v
1.4.28
vagrant@package-ubuntu-1404:~$ dpkg -l |egrep -i "node|npm"
ii  nodejs                              0.10.40-1nodesource1~trusty1     amd64        Node.js event-based server-side javascript engine
what is missing for you ? (on which platform ?)
Graham Weldon
@predominant
Sep 10 2015 10:02
Oh, when you NPM install something with build dependencies.
Like iconv or something
The build requires download of the nodejs source, which references http://nodejs.org/dist/....
So the npm download of the source pulls down the result of the 301 redirect now in place on the site.
And fails install.
gyp verb ensuring nodedir is created /opt/mimo/node_modules/xml2json/node_modules/node-expat/node_modules/iconv/.node-gyp/0.10.40
gyp verb created nodedir /opt/mimo/node_modules/xml2json/node_modules/node-expat/node_modules/iconv/.node-gyp
gyp http GET http://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz
gyp WARN install got an error, rolling back install
gyp verb command remove [ '0.10.40' ]
...
Note the middle 2 http calls.
Try it yourself with curl, or in your browser.
Barthélemy Vessemont
@BarthV
Sep 10 2015 10:04
I see that
Graham Weldon
@predominant
Sep 10 2015 10:04
:)
Barthélemy Vessemont
@BarthV
Sep 10 2015 10:05
but is it really a nodejs cookbook issue rather than a npm one ?
this is a npm install log output
maybe this npm version was not "https" patched yet ><
I will try to reproduce & find out what's really happening
Graham Weldon
@predominant
Sep 10 2015 10:06
Its more of an "FYI" - If you're going to use those packages, they're going to fail.
Barthélemy Vessemont
@BarthV
Sep 10 2015 10:06
okok :)
Graham Weldon
@predominant
Sep 10 2015 10:07
:P
Barthélemy Vessemont
@BarthV
Sep 10 2015 10:07
thank for this information anyway :)
Graham Weldon
@predominant
Sep 10 2015 10:07
Yeah, not sure if its helpful.. but useful to know eh?