Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install时 出错 Host key verification failed. #121

Open
eon-wu-zhenxiong opened this issue Nov 20, 2022 · 1 comment
Open

npm install时 出错 Host key verification failed. #121

eon-wu-zhenxiong opened this issue Nov 20, 2022 · 1 comment

Comments

@eon-wu-zhenxiong
Copy link

环境

ubuntu 18.04
win 10
win 11
上均尝试了

已安装 node v8.12.0

问题

命令:

E:\wzx\Vueproject\OnlineJudgeFE>E:\wzx\nvm\v8.12.0\npm install

报错

npm ERR! Error while executing:
npm ERR! E:\program files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/itargaryen/simple-hotkeys.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\白板\AppData\Roaming\npm-cache\_logs\2022-11-20T15_20_27_606Z-debug.log

日志

2481 verbose stack     at Socket.emit (events.js:211:7)
2481 verbose stack     at Pipe._handle.close [as _onclose] (net.js:561:12)
2482 verbose cwd E:\wzx\Vueproject\OnlineJudgeFE
2483 verbose Windows_NT 10.0.22000
2484 verbose argv "E:\\wzx\\nvm\\v8.12.0\\node.exe" "E:\\wzx\\nvm\\v8.12.0\\node_modules\\npm\\bin\\npm-cli.js" "install"
2485 verbose node v8.12.0
2486 verbose npm  v6.4.1
2487 error Error while executing:
2487 error E:\program files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/itargaryen/simple-hotkeys.git
2487 error
2487 error Host key verification failed.
2487 error fatal: Could not read from remote repository.
2487 error
2487 error Please make sure you have the correct access rights
2487 error and the repository exists.
2487 error
2487 error exited with error code: 128
2488 verbose exit [ 1, true ]
@JunLiangWangX
Copy link

错误信息为验证失败,应该是网络问题导致的,我尝试翻墙下载该问题解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants