Vue_Bug npm install报错 code:128

Bug描述:
npm install报错 code:128
npm ERR! Warning: Permanently added ‘github.com’ (ED25519) to the list of known hosts.
npm ERR! [email protected]: 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://

你可能感兴趣的:(Vue,vue.js,bug,npm)