日常问题总结

当npm安装包的时候,报npm ERR! Command failed: git clone –mirror -q git://github…….之类的错误的时候,可以使用以下方法解决:

方法一:

git config –global http.sslverify “false”

方法二:

git config –global url.”https://”.insteadOf git://

最后

npm install –registry=https://registry.npm.taobao.org

Leave a Reply

Your email address will not be published. Required fields are marked *