mpvue使用vue初始化项目失败:vue-cli · Failed to download repo mpvue/mpvue-quickstart: connect ETIMEDOUT 207.97

按照mpvue文档,初始项目时失败:

$ vue init mpvue/mpvue-quickstart my-project

   vue-cli · Failed to download repo mpvue/mpvue-quickstart: connect ETIMEDOUT 207.97.227.239:443

原因是上面的:‘207.97.227.239:443’连接失败;

问题是我本地githib设置ip不对了,改正确的就行了;

步骤:

找到:C:\Window\System32\drivers\etc 中的host文件,将里面的

旧的:

207.97.227.239   github.com
207.97.227.239   gist.github.coms

207.97.227.239   www.github.com

改:

192.30.253.113    github.com
192.30.253.118    gist.github.coms

192.30.253.113    www.github.com

然后再重新vue init xxx就好了

猜你喜欢

转载自blog.csdn.net/github_38928905/article/details/85335630