嘿,伙计们,我在运行npm install时遇到了这个错误
openssl config failed: error:02001002:system library:fopen:No such file or directory
openssl config failed: error:02001002:system library:fopen:No such file or directory
npm ERR! Error while executing:
npm ERR! C:\Users\rmittal\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/xxxx/xxx-api.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
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rmittal\AppData\Roaming\npm-cache\_logs\2021-04-02T06_15_51_313Z-debug.log
git@github.com/xxxx/xxx-api.git 是我的另一个仓库,只是我看了npm install error : "Host key verification failed.",但没有导致我的解决方案。有人能帮助我吗?
所用版本:
D:\>node -v
v10.23.1
D:\>npm -v
openssl config failed: error:02001002:system library:fopen:No such file or directory
openssl config failed: error:02001002:system library:fopen:No such file or directory
6.14.10
还正确设置了存储库
1条答案
按热度按时间ctehm74n1#
您提到的答案中建议的
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
应该可以工作,但由于您处于CMD中,因此应该是:2023年3月警告:
“GitHub has updated its RSA SSH host key“
假设:
%PATH%
包括C:\path\to\Git\usr\bin
(ssh-keyscan.exe
驻留的位置)在任意文件夹中使用(独立于
npm
)测试最后一个点如果您可以从该私有存储库中列出远程头,则意味着您可以访问它。
如果需要,它应该要求在
%USERPROFILE%/.ssh/known_hosts
中添加指纹。然后您可以再次尝试
npm
命令。