本文介绍: network request to https://registry.npmjs.org/postcss-pxtorem failed, reason: connect ETIMEDOU,这是因为默认npm安装会请求国外的镜像源,导致下载缓慢容易断开请求下载失败的。request to https://registry.npm.taobao.org/axios …根据错误提示信息,是由于原淘宝npm镜像地址:“ https://registry.npm.taobao.org ” 的证书失效,
问题描述一
npm install 时,报错:npm ERR! network request to https://registry.npmjs.org/postcss-pxtorem failed, reason: connect ETIMEDOU,这是因为默认npm安装会请求国外的镜像源,导致下载缓慢容易断开请求下载失败的
解决方案:修改镜像即可!
我们为了解决提高下载速度,设置镜像源地址就可以搞定的。
问题描述二
npm ERR! request to https://registry.npm.taobao.org/axios …reason: certificate has expired 的解决办法
关于这个问题,“ 证书失效! ”
根据错误提示信息,是由于原淘宝npm镜像地址:“ https://registry.npm.taobao.org ” 的证书失效,
手动修改Dockerfile的构建指令,配置 registry 即可
修改为:
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。