X Tutup
The Wayback Machine - https://web.archive.org/web/20211129201348/https://github.com/nodejs/node/commit/2cbd72e17d
Skip to content
Permalink
Browse files
test: skip internet for test-npm-install
Disabling any internet-required features (namely audit and
update-notifer) in order for the test to work without an internet
connection.

- Fixes: #36895

PR-URL: #36933
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
ruyadorno authored and targos committed May 1, 2021
1 parent f39ee90 commit 2cbd72e17dc10624f7d080eddef60ff1894998ed
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/parallel/test-npm-install.js
@@ -42,6 +42,8 @@ const env = { ...process.env,
PATH: path.dirname(process.execPath),
NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'),
NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'),
NPM_CONFIG_AUDIT: false,
NPM_CONFIG_UPDATE_NOTIFIER: false,
HOME: homeDir,
};

0 comments on commit 2cbd72e

Please sign in to comment.
X Tutup