【问题标题】:can't run `npm install -g angular/cli`无法运行`npm install -g angular/cli`
【发布时间】:2017-08-06 09:18:31
【问题描述】:

我最近在我的 Mac 上生成了一个新的 ssh 密钥,但我似乎无法再安装 angular/cli。当我尝试运行 npm install -g angular/cli 时,我收到此错误:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/angular/cli.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

同时打字稿安装得很好。我的 npm 版本是 5.3.0,node 版本是 8.2.1。

提前致谢!

【问题讨论】:

  • npm 5.3.0 有多个问题。 M 不确定这是否是这样,但尝试降级到 npm5。 2.0
  • @mehta-rohan 我尝试了不同版本的 npm,我得到了同样的错误。

标签: angularjs node.js angular-cli


【解决方案1】:

我使用了错误的 repo 名称。应该是:

npm install -g @angular/cli

注意@

【讨论】:

  • 即将告诉你
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-05-08
  • 2017-09-27
  • 1970-01-01
  • 2019-03-11
  • 2021-04-21
  • 1970-01-01
  • 2020-03-28
相关资源
最近更新 更多