vue create 提示 tunneling socket could not be established

vue create test
爆了如下错误。

Vue CLI v3.0.5
✨  Creating project in /Users/tolerious/abc.
🗃  Initializing git repository...
⚙  Installing CLI plugins. This might take a while...

yarn install v1.10.1
info No lockfile found.
info There appears to be trouble with your network connection. Retrying...
[1/4] 🔍  Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info If you think this is a bug, please open a bug report with the information provided in "/Users/tolerious/abc/yarn-error.log".
error An unexpected error occurred: "https://registry.yarnpkg.com/@vue%2fcli-plugin-babel: tunneling socket could not be established, cause=connect EHOSTUNREACH 0.0.4.63:80 - Local (192.168.1.104:57886)".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

试过吧yarn源改成淘宝,以及设置代理,都没效果。

阅读 2.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题