Skip to content

Commit

Permalink
Merge pull request rvagg#3 from fengmk2/support-mirrors
Browse files Browse the repository at this point in the history
Support mirror
  • Loading branch information
rvagg committed Feb 10, 2015
2 parents 0e85c3b + 83bbae8 commit 952ec63
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 952ec63

Please sign in to comment.