vsts-npm-auth - Could not find a part of the path 'Z:'2020-05-27 22:57Dev, React, Form, Formik

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

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

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

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

Solution

# 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

Powered by Remix
|
Designed by szhshp
|
Copyright © szhshp 2022