Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Support mirror
Browse files Browse the repository at this point in the history
Use same env names NVM_NODEJS_ORG_MIRROR and NVM_IOJS_ORG_MIRROR as nvm
  • Loading branch information
fengmk2 committed Feb 10, 2015
1 parent 0e85c3b commit 83bbae8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ var fs = require('graceful-fs')
, mkdir = require('mkdirp')
, win = process.platform == 'win32'
, runtime = semver.parse(process.version).major < 1 ? 'node' : 'iojs'
, defaultDisturl = runtime == 'node' ? 'http://nodejs.org/dist' : 'https://iojs.org/dist'
, defaultDisturl = runtime == 'node' ?
(process.env.NVM_NODEJS_ORG_MIRROR || 'http://nodejs.org/dist')
:
(process.env.NVM_IOJS_ORG_MIRROR || 'https://iojs.org/dist')

function install (gyp, argv, callback) {

Expand Down

0 comments on commit 83bbae8

Please sign in to comment.