Merge pull request #84 from jcreekmore/strict-ssl

Allow specifying StrictSSL in the NPM config file
This commit is contained in:
Mathias Buus 2015-12-21 18:36:25 +01:00
commit d4ca2ffae3

View file

@ -36,7 +36,7 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[pla
}
// downloads if not cached
download({version: version, arch: process.env.npm_config_arch}, extractFile)
download({version: version, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl}, extractFile)
// unzips and makes path.txt point at the correct executable
function extractFile (err, zipPath) {