Node报错:npm error code ETIMEDOUT
1、报错详细信息
npm error code ETIMEDOUT npm error syscall connect npm error errno ETIMEDOUT npm error network request to https://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.1.35:443 npm error network This is a problem related to network connectivity. npm error network In most cases you are behind a proxy or have bad network settings. npm error network npm error network If you are behind a proxy, please make sure that the npm error network 'proxy' config is set properly. See: 'npm help config'
2、分析错误原因
网络的连接超时问题
3、解决方案
方案一:切换很好的网络连接
方案二:使用国内的npm镜像源(淘宝)
npm config set registry https://registry.npmmirror.com
原文地址:https://blog.csdn.net/m0_70545163/article/details/144042655
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!