【发布时间】:2021-01-15 11:31:53
【问题描述】:
首先我运行 npm install -g vsts-npm-auth 命令,我收到一条消息,指出已安装 vsts-npm-auth@0.41.0。 但是当我运行 vsts-npm-auth -config .npmrc 命令时,我收到以下错误消息:
vsts-npm-auth:术语“vsts-npm-auth”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者是否包含路径, 验证路径是否正确,然后重试。 在 line:1 char:1
- vsts-npm-auth -config .npmrc
-
+ CategoryInfo : ObjectNotFound: (vsts-npm-auth:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
【问题讨论】:
-
您使用的是 Windows 还是 MacOS/Linux? Macos 需要不同的设置。见link
标签: node.js npm azure-devops