npm install安装报错

npm WARN notsup Not compatible with your version of node/npm: [email protected]

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/itargaryen/simple-hotkeys.git
npm install安装报错_第1张图片

解决办法1:(没有解决我的问题)
执行如下命令:

git config --global http.sslverify "false"

再执行 npm install 就可以了

如果上述命令执行完后,还是报那个错误,请继续执行如下命令,再执行npm install亲测有效

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

如果上述代码还是不行,就重新安装一下node和npm,看版本是否匹配

你可能感兴趣的:(npm,前端,node.js)