我想从我在Windows服务器上构建的Gitbucket获取模块。
但是当我使用时会出错npm install
。
npm ERR! Error while executing:
npm ERR! C:\Users\~~~~\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t
ssh://git@IPaddress:Gitbucketport/root/modulename.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\2020-09-09T07_20_32_049Z-debug.log
当前验证结果。
但是,我很好奇。
请帮我。谢谢。
更新您的本地known_hosts文件:
ssh-keyscan -t rsa server.com >>~/.ssh/known_hosts
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句