【发布时间】:2018-10-04 08:05:00
【问题描述】:
我在 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 密钥并将其保存在驱动器上。 | 我有来自 bitbucket 的克隆项目。 这个错误与此有什么关系?
由于我是项目新手,所以没有太多知识。
在安装 npm 时是否还需要提供 ssh 密钥?
如果我可以提供与问题相关的更多信息,请告诉我。
谢谢!
【问题讨论】:
-
你是如何解决这个问题的?我遇到了同样的问题如果你给我一个提示,这将对我有帮助谢谢