无法运行`npm install -g angular / cli`

时间:2017-08-06 09:18:32

标签: angularjs node.js angular-cli

我最近在我的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,节点版本是8.2.1。

提前致谢!

1 个答案:

答案 0 :(得分:3)

我使用的是不正确的回购名称。应该是:

npm install -g @angular/cli

注意@