Mio*_*_NC 2 git ssh node.js npm gitbucket
我想从 Gitbucket 获取该模块,它是我在 Windows 服务器上构建的。
\n但是当我使用 时出现错误npm install。
npm ERR! Error while executing: \nnpm ERR! C:\\Users\\~~~~\\AppData\\Local\\Programs\\Git\\cmd\\git.EXE ls-remote -h -t \nssh://git@IPaddress:Gitbucketport/root/modulename.git \nnpm ERR! \nnpm ERR! Host key verification failed. \nnpm ERR! fatal: Could not read from remote repository. \nnpm ERR! \nnpm ERR! Please make sure you have the correct access rights \nnpm ERR! and the repository exists. \nnpm ERR! \nnpm ERR! exited with error code: 128 \nnpm ERR! A complete log of this run can be found in: \nnpm ERR! C:\\Users\\~~~~\\AppData\\Roaming\\npm-cache\\_logs\\2020-09-09T07_20_32_049Z-debug.log \nRun Code Online (Sandbox Code Playgroud)\n当前验证结果。
\n但是,我对某件事很好奇。
\n请帮我。谢谢。
\n小智 6
更新本地的known_hosts文件:
ssh-keyscan -t rsa server.com >>~/.ssh/known_hosts
Run Code Online (Sandbox Code Playgroud)