【问题标题】:Error while installing angular cli process exit with status 128安装 Angular cli 进程退出时出错,状态为 128
【发布时间】:2019-08-22 18:31:46
【问题描述】:
C:\Users\Moaz Azam\demoblog>npm install -g angular/cli

npm 错误!执行时出错:
npm 错误! D:\Program Files (x86)\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/angular/cli.git
npm 错误!
npm 错误!主机密钥验证失败。
npm 错误!致命:无法从远程存储库中读取。
npm 错误!
npm 错误!请确保您拥有正确的访问权限
npm 错误!并且存储库存在。
npm 错误!
npm 错误!退出错误代码:128

【问题讨论】:

  • 你可以试试@angular/cli 吗?

标签: git npm ssh


【解决方案1】:

第一步是使用最新的npm:

npm 安装 -g npm

然后你可以使用,

npm i @angular/cli

【讨论】:

    猜你喜欢
    • 2022-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 1970-01-01
    • 2017-12-02
    • 2020-08-24
    相关资源
    最近更新 更多