Skip to content

Commit

Permalink
workaround quirks from npm (#5633)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl authored Aug 26, 2022
1 parent cd97237 commit 7c52af0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/jetstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions test/release/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c52af0

Please sign in to comment.