We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm在安装部分依赖( 如node-sass等 )的时候,会去下载一些依赖的二进制文件,由于不可言原因,总是下载失败。这里把常用的报错地址换成镜像地址,下载就不会报错了。
npm
node-sass
# === NPM BINRAY CHINA === # https://github.com/cnpm/binary-mirror-config/blob/master/package.json#L48 export NODEJS_ORG_MIRROR="https://cdn.npmmirror.com/binaries/node" export NVM_NODEJS_ORG_MIRROR="https://cdn.npmmirror.com/binaries/node" export PHANTOMJS_CDNURL="https://cdn.npmmirror.com/binaries/phantomjs" export CHROMEDRIVER_CDNURL="https://cdn.npmmirror.com/binaries/chromedriver" export OPERADRIVER_CDNURL="https://cdn.npmmirror.com/binaries/operadriver" export ELECTRON_MIRROR="https://cdn.npmmirror.com/binaries/electron/" export ELECTRON_BUILDER_BINARIES_MIRROR="https://cdn.npmmirror.com/binaries/electron-builder-binaries/" export SASS_BINARY_SITE="https://cdn.npmmirror.com/binaries/node-sass" export SWC_BINARY_SITE="https://cdn.npmmirror.com/binaries/node-swc" export NWJS_URLBASE="https://cdn.npmmirror.com/binaries/nwjs/v" export PUPPETEER_DOWNLOAD_HOST="https://cdn.npmmirror.com/binaries" export SENTRYCLI_CDNURL="https://cdn.npmmirror.com/binaries/sentry-cli" export SAUCECTL_INSTALL_BINARY_MIRROR="https://cdn.npmmirror.com/binaries/saucectl" export npm_config_sharp_binary_host="https://cdn.npmmirror.com/binaries/sharp" export npm_config_sharp_libvips_binary_host="https://cdn.npmmirror.com/binaries/sharp-libvips" export npm_config_robotjs_binary_host="https://cdn.npmmirror.com/binaries/robotj"
etc\profile.d\bash_profile.sh
C:\Program Files\Git\etc\profile.d\bash_profile.sh
The text was updated successfully, but these errors were encountered:
No branches or pull requests
NPM Binary 镜像配置
npm
在安装部分依赖( 如node-sass
等 )的时候,会去下载一些依赖的二进制文件,由于不可言原因,总是下载失败。这里把常用的报错地址换成镜像地址,下载就不会报错了。etc\profile.d\bash_profile.sh
如:
C:\Program Files\Git\etc\profile.d\bash_profile.sh
The text was updated successfully, but these errors were encountered: