我在安装一些 NPM 包时遇到问题。当angular2-materialize从repo安装NPM 包(例如)时会发生这种情况:
npm i InfomediaLtd/angular2-materialize
Run Code Online (Sandbox Code Playgroud)
它的前叉也会发生。我试图用相同的结果创建自己的叉子。
安装它会导致错误,
Error: Command failed: git -c core.longpaths=true clone --template=<...>\npm-cache\_git-remotes\_templates --mirror git@github.com:InfomediaLtd/angular2-materialize.git <...>\npm-cache\_git-remotes\git-github-com-InfomediaLtd-angular2-materialize-git-2ec1a411
Cloning into bare repository '<...>\npm-cache\_git-remotes\git-github-com-InfomediaLtd-angular2-materialize-git-2ec1a411'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
回购是公开的,它肯定存在并且可以克隆
git clone git://github.com/InfomediaLtd/angular2-materialize.git
Run Code Online (Sandbox Code Playgroud)
另一方面,这个 fork没有错误(repo 名称已更改):
npm i thcheng/angular-plus-materialize
Run Code Online (Sandbox Code Playgroud)
其他存储库也可以毫无问题地安装:
npm i toddmotto/angular-component
Run Code Online (Sandbox Code Playgroud)
我已经在 Windows 上的所有 NPM 版本上尝试过这个,也在 Ubuntu 服务器上尝试过,结果相同。我以 admin/root 身份运行 NPM 并尝试清理 NPM 缓存(如相关问题通常建议的那样)。
这个回购有什么问题吗?那里发生了什么,如何解决?
| 归档时间: |
|
| 查看次数: |
12786 次 |
| 最近记录: |