gpt4 book ai didi

npm install 主机 key 验证失败

转载 作者:行者123 更新时间:2023-12-02 13:46:58 26 4
gpt4 key购买 nike

我在 angular2+ 项目目录中运行 npm install 并得到以下错误,我根本无法理解。

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\bin\git.EXE ls-remote -h -t ssh://git@bitbucket.org/path/projectname.git
npm ERR!
npm ERR! Host key verification failed.
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


我已经在 bitbucket 和帐户上创建了 ssh key 并将其保存在驱动器上。 |
我有来自 bitbucket 的克隆项目。
这个错误与此有什么关系?

由于我是项目的新手,所以没有太多知识。

我是否需要在安装 npm 的同时提供 ssh key ?

如果我可以提供与问题相关的更多信息,请告诉我。

谢谢!

最佳答案

请检查您使用的 npm 版本。 Npm 与 node 捆绑在一起,您的类路径上不应有多个实例。

Hey yup, I thought as much, but seeing as I had updated npm to the latest version ( I even uninstalled node and reinstalled ) with the same result. npm -v still showed the same version - 1.4.9.

FYI for others that may have the same issue. I also have Chocolatey installed, and it seems that npm was also installed via Chocolately which seems to overide the npm path. Uninstalling npm from Chocolately resolved the npm version issue.

After that angular/cli installs correctly from npm.

https://github.com/angular/angular-cli/issues/6313#issuecomment-301360623

关于npm install 主机 key 验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49995273/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com