We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d93b48 commit 2def17aCopy full SHA for 2def17a
lib/install.js
@@ -135,7 +135,8 @@ class Install extends ArboristWorkspaceCmd {
135
// be very strict about engines when trying to update npm itself
136
const npmInstall = args.find(arg => arg.startsWith('npm@') || arg === 'npm')
137
if (isGlobalInstall && npmInstall) {
138
- const npmManifest = await pacote.manifest(npmInstall)
+ const npmOptions = this.npm.flatOptions
139
+ const npmManifest = await pacote.manifest(npmInstall, npmOptions)
140
try {
141
checks.checkEngine(npmManifest, npmManifest.version, process.version)
142
} catch (e) {
0 commit comments