Node-gyp: When NodeJS is down, it fails node-gyp installation.

Created on 5 Apr 2017  路  8Comments  路  Source: nodejs/node-gyp

Versions:

  • Node: 7.5.0
  • NPM: 4.1.2
  • node-gyp: 3.4.0

Stack:

> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp http GET https://nodejs.org/download/release/v6.10.1/node-v6.10.1-headers.tar.gz
gyp http 522 https://nodejs.org/download/release/v6.10.1/node-v6.10.1-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 522 response downloading https://nodejs.org/download/release/v6.10.1/node-v6.10.1-headers.tar.gz

unspecified

Saved by NODEJS_ORG_MIRROR pointing out to https://cnpmjs.org/mirrors/node

Proposed solutions:

  • Automatic fallback to X, Y or Z mirrors if https://nodejs.org isn't available
  • Follow redirections
  • Updated README/documentation with a list of ENV VARS, with examples

Most helpful comment

It would be nice to have a fall-back mirror link in case node is down again.

All 8 comments

@richardlau Updated issue.

It would be nice to have a fall-back mirror link in case node is down again.

Can you try pointing NODEJS_ORG_MIRROR to https://cnpmjs.org/mirrors/node instead of https://cnpmjs.org/mirrors/node/latest-v6.x/node-v6.10.1-headers.tar.gz?

@thalesfsp change the NODEJS_ORG_MIRROR variable to just https://cnpmjs.org/mirrors/node

@richardlau @dimko Worked! I updated the issue again.

I am trying to deploy my Meteor app and cannot because of this issue. And I really need to deploy an update. I am not sure in Meteor if I can change NODEJS_ORG_MIRROR... any clue how?

Closing, should be working again.

Was this page helpful?
0 / 5 - 0 ratings