npm install 无法在不正确的 url 处进行身份验证
npm install unable to authenticate at incorrect url
当我 运行 npm install @types/js-cookie@^2.2.0
我得到这个错误:
npm install @types/js-cookie@^2.2.0
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="https://pkgsprodsu3weu.app.pkgs.visualstudio.com/"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\A183540\Me\Roaming\npm-cache_logs22-02-18T09_16_35_272Z-debug.log
我不确定它为什么要尝试访问 https://pkgsprodsu3weu.app.pkgs.visualstudio.com/
,因为我的 .npmrc
是这样的:
; begin auth token
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:username=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:_password="token"
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:email=me@Megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:username=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:_password="token"
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:email=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:always-auth=true
; end auth token
我不确定 https://pkgsprodsu3weu.app.pkgs.visualstudio.com/
是从哪里来的,所以无法更新它,也一直被定向到 this 但我无法安装任何软件包,因此无法安装vsts-npm-auth
。有没有其他方法可以解决这个问题?
我重新生成了 AzureDevOps 令牌。
当我 运行 npm install @types/js-cookie@^2.2.0
我得到这个错误:
npm install @types/js-cookie@^2.2.0
npm ERR! code E401 npm ERR! Unable to authenticate, need: Basic realm="https://pkgsprodsu3weu.app.pkgs.visualstudio.com/"
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\A183540\Me\Roaming\npm-cache_logs22-02-18T09_16_35_272Z-debug.log
我不确定它为什么要尝试访问 https://pkgsprodsu3weu.app.pkgs.visualstudio.com/
,因为我的 .npmrc
是这样的:
; begin auth token
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:username=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:_password="token"
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:email=me@Megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:username=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:_password="token"
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/:email=me@megroup.com
//avdigitalweb.pkgs.visualstudio.com/_packaging/MeDigital.NPM/npm/registry/:always-auth=true
; end auth token
我不确定 https://pkgsprodsu3weu.app.pkgs.visualstudio.com/
是从哪里来的,所以无法更新它,也一直被定向到 this 但我无法安装任何软件包,因此无法安装vsts-npm-auth
。有没有其他方法可以解决这个问题?
我重新生成了 AzureDevOps 令牌。