Skip to content

Commit 2def17a

Browse files
yacoman89wraithgar
authored andcommitted
fix(install): use configured registry when checking manifest
PR-URL: #3760 Credit: @yacoman89 Close: #3760 Reviewed-by: @wraithgar
1 parent 4d93b48 commit 2def17a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ class Install extends ArboristWorkspaceCmd {
135135
// be very strict about engines when trying to update npm itself
136136
const npmInstall = args.find(arg => arg.startsWith('npm@') || arg === 'npm')
137137
if (isGlobalInstall && npmInstall) {
138-
const npmManifest = await pacote.manifest(npmInstall)
138+
const npmOptions = this.npm.flatOptions
139+
const npmManifest = await pacote.manifest(npmInstall, npmOptions)
139140
try {
140141
checks.checkEngine(npmManifest, npmManifest.version, process.version)
141142
} catch (e) {

0 commit comments

Comments
 (0)