From 7c52af0deccaa9d0df3210abda16e56d8aa0dc8c Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 26 Aug 2022 13:08:04 +0100 Subject: [PATCH] workaround quirks from npm (#5633) --- test/jetstream.js | 4 ++++ test/release/install.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/test/jetstream.js b/test/jetstream.js index bb2de970..114c8988 100644 --- a/test/jetstream.js +++ b/test/jetstream.js @@ -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); diff --git a/test/release/install.sh b/test/release/install.sh index 9804c0e7..955fcf3e 100755 --- a/test/release/install.sh +++ b/test/release/install.sh @@ -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