简体   繁体   English

使用VSTS的NPM软件包管理

[英]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.

相关问题 用新的用户名和密码更新 vsts-npm-auth - Update vsts-npm-auth with new username and password 使用简单的控制台应用对VSTS进行身份验证 - Authenticate to VSTS using simple console aplication 是否可以创建不使用PAT即可连接到VSTS的服务? - Is it possible to create a service that connects to VSTS without using a PAT? 如何使用Perl进行身份验证和会话管理? - How to do authentication and session management using Perl? 使用“数据库内”设计的身份验证管理 - Authentication management using "in-database" design 使用数组制作访客登录管理系统 - Using arrays in making visitor log in management system 如何使用基于VSTS服务器的任务验证消息发布到服务总线的发布者? - How to verify the publisher of a message to a service bus using VSTS server-based task? 我想使用 Next-Auth 实现会话管理系统 - I want to implement a sessions management system using Next-Auth 如果用户使用电话认证登录,是否可以进行用户管理? - Is it possible to perform user management if the user has logged in using phone authentication? 如何在 Flutter 中使用 Provider State 管理通过 API 登录 - how to login by API using Provider State management in Flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM