前端修改国内源

npm 国内源

1
npm config set registry https://registry.npmmirror.com

nvm 国内源

  • 设置npm_mirror:
    1
    nvm npm_mirror https://npmmirror.com/mirrors/npm/
  • 设置node_mirror:
    1
    nvm node_mirror https://npmmirror.com/mirrors/node/

electron 国内源

1
2
3
# https://npmmirror.com/mirrors/electron/
npm config set electron_mirror=https://npmmirror.com/mirrors/electron/
npm config set electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/

镜像集合

1
2
3
4
5
6
7
8
# https://npmmirror.com/
# 开源镜像: https://npmmirror.com/mirrors/
# Node.js 镜像: https://npmmirror.com/mirrors/node/
# alinode 镜像: https://npmmirror.com/mirrors/alinode/
# ChromeDriver 镜像: https://npmmirror.com/mirrors/chromedriver/
# OperaDriver 镜像: https://npmmirror.com/mirrors/operadriver/
# Selenium 镜像: https://npmmirror.com/mirrors/selenium/
# electron 镜像: https://npmmirror.com/mirrors/electron/

前端修改国内源
https://mqpeng.github.io/2023/08/04/mirror/
作者
Joker Spice
发布于
2023年8月4日
许可协议