在安装 vue-elementui-admin时出现 undefined ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git
npm ERR! Error while executing:npm ERR! C:\chenjingxia\application\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.gitnpm ERR!npm ERR! Host key verification failed.npm ERR! fata
·
npm ERR! Error while executing:
npm ERR! C:\chenjingxia\application\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.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\Administrator\AppData\Roaming\npm-cache\_logs\2022-03-22T02_34_58_924Z-debug.log
网上说是需要给git配置一个系统环境变量,懒得配了。
在文件夹右键,使用Git Bash打开,npm install。
亲测有效!!!
更多推荐
已为社区贡献4条内容
所有评论(0)