【nodejs】Nodejs安装node-sass超时改为国内镜像源
安装的时候提示连接超时
yarn install 报错 connect ETIMEDOUT 104.16.22.35:443".
或者:
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_binding.node":
修改为国内阿里云镜像:
yarn config set sass-binary-site https://registry.npmmirror.com/mirrors/node-sass
npm config set registry https://registry.npmmirror.com
npm config set sass_binary_site=https://npmmirror.com/mirrors/node-sass
npm install node-sass
然后在执行安装命令
yarn config delete proxy
npm config rm proxy
npm config rm https-proxy
yarn install