无法运行`npm install

编程入门 行业动态 更新时间:2024-10-16 02:30:13
无法运行`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: 128

At 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/cli

Notice the @.

更多推荐

本文发布于:2023-08-02 22:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1381895.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:npm   install

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!