使用 VSTS 进行 NPM 包管理



我在使用包管理提要发布 npm 包时遇到问题。

>vsts-npm-auth -config .npmrc

vsts-npm-auth v0.25.0.0
----------------------
Creating npmrcFile. Path: H:.npmrc
Getting new credentials for source:https://########.pkgs.visualstudio.com/_packaging/########/npm/registry/, scope:vso.packaging_write vso.drop_write

>npm publish
...
npm ERR! need auth auth required for publishing
npm ERR! need auth You need to authorize this machine using `npm adduser`

我在这里错过了什么?

.npmrc 文件(带有"_authToken"(,由 H: 驱动器中的 vsts-npm-auth -config .npmrc 生成。

我手动将其移动到用户文件夹,以使 npm 发布正常工作。

解决方案是将 .npmrc 文件移动到用户文件夹。

最新更新