设置 npm 镜像源

NodeJS 使用阿里镜像仓库

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
npm config set registry https://registry.npmmirror.com/

npm config set disturl https://npmmirror.com/mirrors/node/
npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass/
npm config set sharp_dist_base_url https://npmmirror.com/mirrors/sharp-libvips/
npm config set electron_mirror https://npmmirror.com/mirrors/electron/
npm config set puppeteer_download_host https://npmmirror.com/mirrors/
npm config set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs/
npm config set sentrycli_cdnurl https://npmmirror.com/mirrors/sentry-cli/
npm config set sqlite3_binary_site https://npmmirror.com/mirrors/sqlite3/
npm config set python_mirror https://npmmirror.com/mirrors/python/
1
yarn config set registry https://registry.npmmirror.com/
Licensed under CC BY-NC-SA 4.0
最后更新于 Jun 19, 2022 21:52 +0800
使用 Hugo 构建
主题 StackJimmy 设计