npm login 输入正确的用户名和密码时仍不能登录成功

错误信息如下:

npm ERR! code E400
npm ERR! Registry returned 400 for PUT on https://registry.npmjs.org/-/user/org.
couchdb.user:{用户名}: That email has already been registered.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\{电脑名称}\AppData\Roaming\npm-cache\_logs\2019-05-08T07_58_4
7_032Z-debug.log

导致原因:

使用了 taobao 的 registry 地址造成登录出现如标题所示错误。

解决方法:

在控制台输入【npm config set registry https://registry.npmjs.org/】命令。

你可能感兴趣的:(ionic问题解决方法)