yarn 创建 react项目报错

半世苍凉 提交于 2020-03-26 16:37:30

3 月,跳不动了?>>>

新安装 yarn v1.22.4在执行以下命令,

yarn create react-app my-app

显示报错如下

info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/react: tunneling socket could not be established,
cause=connect ECONNREFUSED 127.0.0.1:3128".

解决方法:

yarn config delete https-proxy
yarn config delete proxy

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!