Skip to content

Commit

Permalink
fix(install): use configured registry when checking manifest
Browse files Browse the repository at this point in the history
PR-URL: #3760
Credit: @yacoman89
Close: #3760
Reviewed-by: @wraithgar
  • Loading branch information
yacoman89 authored and wraithgar committed Sep 15, 2021
1 parent 4d93b48 commit 2def17a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2def17a

Please sign in to comment.