0
点赞
收藏
分享

微信扫一扫

Vue_Bug npm install报错 code:128

东言肆语 2023-10-16 阅读 10
vue.jsbugnpm

Bug描述:
npm install报错 code:128
npm ERR! Warning: Permanently added ‘github.com’ (ED25519) to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
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.

解决方法:
执行如下命令:

git config --global http.sslverify "false"

再执行 npm install 就可以了
如果上述命令执行完后,还是报那个错误,请继续执行如下命令:

git config --global url."https://".insteadOf git://
举报

相关推荐

0 条评论