相关推荐recommended
Vue3 解决:npm ERR! network request to https:registry.npmmirror.comnode-sass failed 的三种解决方案
作者:mmseoamin日期:2024-02-02

1、问题描述:

其一、整体报错为:

安装的命令为:npm i node-sass

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmmirror.com/node-sass failed, reason: connect ETIMEDOUT 240e:e9:d804:0:3::3fb:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! network request to https://registry.npmmirror.com/node-sass failed, reason: connect ETIMEDOUT 240e:e9:d804:0:3::3fb:443

中文为:

npm 错误! 到 https://registry.npmmirror.com/node-sass 的网络请求失败,原因:连接 ETIMEDOUT 240e:e9:d804:0:3::3fb:443

其二、问题描述为:

想要在 vue3 项目里,支持