Update vsts-npm-auth with new username and password

匆匆过客 提交于 2019-12-12 04:29:04

问题


I have installed the vsts-npm-auth package using following command:

npm install -g vsts-npm-auth --registry https://registry.npmjs.com

And I ran vsts-npm-auth -config .npmrc command to set the credential but I am facing below error:

Now I need to update the credential but it always fetches the existing credential. Is there any way to send PUT request and update the credential ?


回答1:


I made it work with help of my colleague.

  1. Uninstall vsts-npm-auth package
  2. remove NPM cache
  3. delete .npmrc file under Users folder
  4. And re-run the below command with auth flag set to false. It will ask for the creds.

    npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false



来源:https://stackoverflow.com/questions/43840562/update-vsts-npm-auth-with-new-username-and-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!