Skip to content

Commit

Permalink
📝 Docs: fix electron_mirror link error
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #849
  • Loading branch information
Molunerfinn committed Apr 4, 2022
1 parent b3c2ed9 commit 5d06469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ npm run electron:serve # 重新进入开发模式
**注意**:如果你的网络环境不太好,可能会出现 `electron-builder` 下载 `electron` 二进制文件失败的情况。这个时候需要在 `npm run electron:build` 之前指定一下 `electron` 的源为国内源:

```bash
export ELECTRON_MIRROR="https://registry.npmmirror.com/binary.html?path=electron/"
# 在 Windows 上,则可以使用 set ELECTRON_MIRROR=https://registry.npmmirror.com/binary.html?path=electron/ (无需引号)
export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
# 在 Windows 上,则可以使用 set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (无需引号)
npm run electron:build
```

Expand Down

0 comments on commit 5d06469

Please sign in to comment.