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

Den*_* M. 0 node.js angularjs 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
Run Code Online (Sandbox Code Playgroud)

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

提前致谢!

Den*_* M. 6

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

npm install -g @angular/cli
Run Code Online (Sandbox Code Playgroud)

请注意@.