[英]NPM packages management using VSTS
I'm having trouble publishing npm packages using using Package Management feeds. 我在使用软件包管理供稿发布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`
What am I missing here? 我在这里想念什么?
解决方案是将.npmrc文件移动到用户文件夹。
The .npmrc file (with the "_authToken"), was generated by the vsts-npm-auth -config .npmrc in the H: drive. .npmrc文件(带有“ _authToken”)是由H:驱动器中的vsts-npm-auth -config .npmrc生成的。
I manually moved it to the user folder in order to make the npm publish working. 我手动将其移至用户文件夹,以使npm发布工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.