workaround quirks from npm (#5633)
This commit is contained in:
@@ -62,6 +62,7 @@ if (typeof phantom == "undefined") {
|
||||
var cmd = process.platform == "win32" ? "npm.cmd" : "npm";
|
||||
|
||||
function npm(args, done) {
|
||||
args.push("--loglevel=error");
|
||||
child_process.spawn(cmd, args, { stdio: [ "ignore", 1, 2 ] }).on("exit", done);
|
||||
}
|
||||
|
||||
@@ -72,9 +73,12 @@ if (typeof phantom == "undefined") {
|
||||
"is-my-json-valid@2.20.5",
|
||||
"phantomjs-prebuilt@2.1.14",
|
||||
"--no-audit",
|
||||
"--no-fund",
|
||||
"--no-optional",
|
||||
"--no-save",
|
||||
"--no-strict-ssl",
|
||||
"--no-update-notifier",
|
||||
"--production",
|
||||
], function(code) {
|
||||
if (code) {
|
||||
console.log("npm install failed with code", code);
|
||||
|
||||
@@ -48,6 +48,8 @@ done
|
||||
nvs use $NODE
|
||||
node --version
|
||||
npm config set audit false
|
||||
npm config set fund false
|
||||
npm config set loglevel error
|
||||
npm config set optional false
|
||||
npm config set save false
|
||||
npm config set strict-ssl false
|
||||
|
||||
Reference in New Issue
Block a user