问题描述
本地执行npm login进行登录时报错:
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:
根据错误提示:PUT的地址是:https://registry.npmmirror.com, 而是不是 https://registry.npmjs.org
解决方案
在终端输入:
npm config set registry https://registry.npmjs.org/
然后重新执行npm login,根据提示输入username和password即可登录成功。