npm WARN notsup Not compatible with your version of node/npm: v-click-outside-x@3.7.1
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/itargaryen/simple-hotkeys.git
解决办法1:(没有解决我的问题)
执行如下命令:
git config --global http.sslverify "false"
再执行 npm install 就可以了
如果上述命令执行完后,还是报那个错误,请继续执行如下命令,再执行npm install亲测有效
git config --global url."https://".insteadOf git://
如果上述代码还是不行,就重新安装一下node和npm,看版本是否匹配
文章讲述了npm安装过程中遇到的警告问题,涉及git配置(如禁用ssl验证和使用https代替git)以及检查node和npm版本是否兼容。提供了解决npm错误的方法,包括全局git配置和重装node/npm。
2984

被折叠的 条评论
为什么被折叠?



