vsts-npm-auth - Could not find a part of the path 'Z:'
文章目录

vsts-npm-auth - Could not find a part of the path ‘Z:’

1
"scripts": { "refreshVSToken": "vsts-npm-auth -config .npmrc" }

npm run refreshVSToken 遇到错误 Could not find a part of the path ‘Z:’;

这个盘符可能是任何一个奇怪的盘符

Solution

1
2
3
4
5
# Other
$ vsts-npm-auth -config .npmrc -TargetConfig ~/.npmrc

# Windows
$ vsts-npm-auth -config .npmrc -TargetConfig ./.npmrc

Reference

https://github.com/MicrosoftDocs/azure-devops-docs/issues/5508