npm install 报错
运行 npm install --legacy-peer-deps 可解决
继续报错,这个报错
解决方法:找到C:\Users\用户名 下的.gitconfig,用记事本打开。
下面http部分内容改为:
[http]
sslVerify = false
[url “https://github.com/nhn/raphael.git/”]
insteadOf = git://github.com/nhn/raphael/git/
然后再运行 npm install --registry=https://registry.npm.taobao.org
这部分原文链接: https://blog.youkuaiyun.com/Lione10/article/details/123086799
我到这边是又报了上面版本的错误,所以我又运行了一遍npm install --legacy-peer-deps就解决了。