【问题标题】:404 Not Found: @angular/cli@latest404 未找到:@angular/cli@latest
【发布时间】:2018-03-02 13:31:15
【问题描述】:

由于我清理了我的缓存,我无法安装我得到的 angular cli:

npm install @angular/cli@latest                             
npm ERR! code E404
npm ERR! 404 Not Found: @angular/cli@latest

节点版本:8.4 npm 版本:5.3.0

对此有任何想法吗?

【问题讨论】:

  • 检查你的节点和 npm 版本
  • @Robert 我添加了版本
  • 重新启动计算机可能会有所帮助 :-) 在我的机器上检查一切正常。
  • 已经试过了:)

标签: node.js angular npm


【解决方案1】:

好的,我发现了问题:

在我的 .npmrc 中,我定义了一些奇怪的身份验证

cat ~/.npmrc 
registry=https://registry.npmjs.org/
email=xxx@xx.com
always-auth=true
_auth="blabla"

只需要删除

email=xxx@xx.com
always-auth=true
_auth="blabla"

【讨论】:

    猜你喜欢
    • 2019-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-09
    • 2019-01-20
    • 2017-11-15
    • 2017-12-10
    • 2017-05-13
    相关资源
    最近更新 更多