Skip to content

Commit

Permalink
chore: 配置国内淘宝源
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Feb 21, 2022
1 parent 77a36af commit 45a73b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# 请在安装依赖和打包时自行切换这两份配置!

# 解决国内用户 yarn 安装依赖时失败的问题
# ELECTRON_MIRROR = https://npmmirror.com/mirrors/electron/
# ELECTRON_BUILDER_BINARIES_MIRROR = https://npmmirror.com/mirrors/electron-builder-binaries/

# 解决国内用户 build 打包时下载依赖失败的问题
ELECTRON_MIRROR = https://npmmirror.com/mirrors/electron/v
ELECTRON_BUILDER_BINARIES_MIRROR = https://npmmirror.com/mirrors/electron-builder-binaries/v
# 解决国内用户下载 electron 相关依赖时失败的问题
ELECTRON_MIRROR = https://npmmirror.com/mirrors/electron/
ELECTRON_BUILDER_BINARIES_MIRROR = https://npmmirror.com/mirrors/electron-builder-binaries/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> 国内环境在安装依赖和打包时,需要切换 .npmrc 文件中的镜像源配置
> 国内环境在安装依赖和打包时,需要开启 .npmrc 文件中的镜像源配置
## ⚡️ 简介

Expand Down

0 comments on commit 45a73b6

Please sign in to comment.