summaryrefslogtreecommitdiff
path: root/deps/npm/lib/install.js
diff options
context:
space:
mode:
authornpm team <ops+robot@npmjs.com>2021-09-20 19:18:58 +0000
committerRich Trott <rtrott@gmail.com>2021-09-20 15:51:14 -0700
commit7153d25dd6e570aeedc7762a7b0f94207280bb09 (patch)
tree2f8c1ddab2b0ad65417d4a252fa3739342d996c2 /deps/npm/lib/install.js
parent931abc085e772d3ad35de2d45b22aa4e677b702d (diff)
downloadnode-new-7153d25dd6e570aeedc7762a7b0f94207280bb09.tar.gz
deps: upgrade npm to 7.24.0
PR-URL: https://github.com/nodejs/node/pull/40167 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/npm/lib/install.js')
-rw-r--r--deps/npm/lib/install.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/install.js b/deps/npm/lib/install.js
index 1589ff589c..99f75b7138 100644
--- a/deps/npm/lib/install.js
+++ b/deps/npm/lib/install.js
@@ -135,7 +135,8 @@ class Install extends ArboristWorkspaceCmd {
// be very strict about engines when trying to update npm itself
const npmInstall = args.find(arg => arg.startsWith('npm@') || arg === 'npm')
if (isGlobalInstall && npmInstall) {
- const npmManifest = await pacote.manifest(npmInstall)
+ const npmOptions = this.npm.flatOptions
+ const npmManifest = await pacote.manifest(npmInstall, npmOptions)
try {
checks.checkEngine(npmManifest, npmManifest.version, process.version)
} catch (e) {