我无法使用我的用户名和密码对npm login在终端中运行成功,而
我使用一对帐号和密码登录npmjs.com网站.但是当npm login在终端中执行时,出现了这个错误:
npm WARN adduser Incorrect username or password
npm WARN adduser You can reset your account by visiting:
npm WARN adduser
Run Code Online (Sandbox Code Playgroud)
Joh*_*iao 21
查看npm config through npm config ls,检查注册表
? npm config ls
; cli configs
user-agent = "npm/2.14.2 node/v4.0.0 darwin x64"
; userconfig /Users/xxx/.npmrc
email = "xxx@xx.com"
registry = "https://registry.npm.taobao.org/"
Run Code Online (Sandbox Code Playgroud)
如果你使用'taobao.org'等第三方注册表,你绝对会得到'不正确的用户名或密码'错误提示.
npmjs.org暂时改回使用官方注册表:
npm config set registry https://registry.npmjs.org/
| 归档时间: |
|
| 查看次数: |
21948 次 |
| 最近记录: |