Commit 5e21f475 by Josh Graham

Remove npmconf - fixes #1333

parent afa08adb
......@@ -61,7 +61,6 @@
"mkdirp": "^0.5.1",
"nan": "^2.2.0",
"node-gyp": "^3.3.1",
"npmconf": "^2.1.2",
"sass-graph": "^2.1.1"
},
"devDependencies": {
......
......@@ -5,7 +5,6 @@
var fs = require('fs'),
eol = require('os').EOL,
mkdir = require('mkdirp'),
npmconf = require('npmconf'),
path = require('path'),
got = require('got'),
pkg = require('../package.json');
......@@ -63,25 +62,17 @@ function download(url, dest, cb) {
*/
function applyProxy(options, cb) {
npmconf.load({}, function (er, conf) {
var proxyUrl;
if (!er) {
proxyUrl = conf.get('https-proxy') ||
conf.get('proxy') ||
conf.get('http-proxy');
}
var env = process.env;
options.proxy = proxyUrl ||
options.proxy = env.npm_config_https_proxy ||
env.npm_config_proxy ||
env.npm_config_http_proxy ||
env.HTTPS_PROXY ||
env.https_proxy ||
env.HTTP_PROXY ||
env.http_proxy;
cb(options);
});
}
/**
......@@ -123,7 +114,7 @@ if (process.env.SKIP_SASS_BINARY_DOWNLOAD_FOR_CI) {
}
/**
* If binary does not exsit, download it
* If binary does not exist, download it
*/
checkAndDownloadBinary();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment