转载自:https://blog.csdn.net/tyro_java/article/details/79772442
发现问题
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 An unexpected error occurred: "https://registry.npm.taobao.org/autoprefixer: tunneling socket could not be established, cause=connect ETIMEDOUT 10.129.49.21:8080".
- 1
- 2
- 3
- 4
- 5
经过沉着冷静的思考后,分析关键词:tunneling socket could not be established
通过百度和Google搜索引擎的帮助,终于发现了解决方案
解决方案
代理出现了问题,删除之
npm config rm proxy
npm config rm https-proxy
- 1
- 2
删除之后一切ok
对node-sass镜像源进行设置
yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
或者
npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
- 1
- 2
- 3
参考链接
- https://stackoverflow.com/questions/33322739/npm-error-tunneling-socket-could-not-be-established-cause-connect-etimedout
- http://www.it1352.com/536444.html