1、输入yarn后,下载失败报错
connect ETIMEDOUT 10.136.33.5:8081at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[1/4] Resolving packages... [2/4] Fetching 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 There appears to be trouble with your network connection. Retrying... error Error: connect ETIMEDOUT 10.136.33.5:8081at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
2、检查淘宝镜像 yarn config list
3、设置淘宝镜像 yarn config set registry https://registry.npmmirror.com/
yarn config set registry https://registry.npmmirror.com/
4、yarn install还是失败
error Error: connect ETIMEDOUT 10.136.33.5:8081
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
5、取消SSL连接:yarn config set strict-ssl false
6、yarn 下载到一半还是失败
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-1.7.8.tgz: unexpected end of file
at Zlib.zlibOnError [as onerror] (zlib.js:180:17)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
7、重新设置淘宝镜像 npm config set registry http://registry.npmjs.org(这一步应该没用。。。)
8、yarn 下载成功