无法运行`npm install -g angular / cli`(can't run `npm install -g 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。
提前致谢!
I've recently generated a new ssh key on my mac and I can't seem to install angular/cli anymore. When I try to run npm install -g angular/cli I get this error:
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: 128At the same time typescript installed perfectly fine. My npm version is 5.3.0 and node version is 8.2.1.
Thanks in advance!
最满意答案
我使用的是不正确的回购名称。 应该是:
npm install -g @angular/ci注意@
I was using the incorrect repo name. It should have been:
npm install -g @angular/cliNotice the @.
更多推荐
发布评论