diff options
author | Jacob Yacovelli <jjyacovelli@gmail.com> | 2021-09-15 17:42:35 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-09-15 18:51:57 +0300 |
commit | 2def17a3b625b92b40c6185ff4b47e8ed006492c (patch) | |
tree | abfedf2e35ae53be668e72be3ae529af743e9dbe | |
parent | 4d93b484abb50e3704fb436db572b93fb36c7ac3 (diff) |
fix(install): use configured registry when checking manifest
PR-URL: https://github.com/npm/cli/pull/3760
Credit: @yacoman89
Close: #3760
Reviewed-by: @wraithgar
-rw-r--r-- | lib/install.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index 1589ff589..99f75b713 100644 --- a/lib/install.js +++ b/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) { |