問(wèn)題描述
本地執(zhí)行npm login進(jìn)行登錄時(shí)報(bào)錯(cuò):
npm ERR! code E409
npm ERR! 409 Conflict - PUT https://registry.npmmirror.com/-/user/org.couchdb.user:xxx - [conflict] User guo03188 already exists
npm ERR! A complete log of this run can be found in:
根據(jù)錯(cuò)誤提示:PUT的地址是:https://registry.npmmirror.com, 而是不是 https://registry.npmjs.org
解決方案
在終端輸入:
npm config set registry https://registry.npmjs.org/
然后重新執(zhí)行npm login凛虽,根據(jù)提示輸入username和password即可登錄成功。
image