mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
♻️ 升级 Electron Fix https://github.com/siyuan-note/siyuan/issues/6584
This commit is contained in:
parent
2a67a917b8
commit
43e9927e3d
4 changed files with 18 additions and 18 deletions
8
.github/CONTRIBUTING.md
vendored
8
.github/CONTRIBUTING.md
vendored
|
|
@ -14,21 +14,21 @@ Install pnpm: `npm install -g pnpm`
|
|||
|
||||
Set the Electron mirror environment variable and install Electron:
|
||||
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@21.2.0 -D`
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@21.2.3 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
|
||||
* `pnpm install electron@21.2.0 -D`
|
||||
* `pnpm install electron@21.2.3 -D`
|
||||
|
||||
NPM mirror:
|
||||
|
||||
* Use mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* Use npmmirror China mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
|
||||
|
||||
</details>
|
||||
|
||||
On the desktop, go to the app folder to run:
|
||||
|
||||
* `pnpm install electron@21.2.0 -D`
|
||||
* `pnpm install electron@21.2.3 -D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
|
|||
8
.github/CONTRIBUTING_zh_CN.md
vendored
8
.github/CONTRIBUTING_zh_CN.md
vendored
|
|
@ -14,20 +14,20 @@
|
|||
|
||||
设置 Electron 镜像环境变量并安装 Electron:
|
||||
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@21.2.0 -D`
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@21.2.3 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
|
||||
* `pnpm install electron@21.2.0 -D`
|
||||
* `pnpm install electron@21.2.3 -D`
|
||||
|
||||
NPM 镜像:
|
||||
|
||||
* 使用镜像仓库 `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* 使用 npmmirror 中国镜像仓库 `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* 恢复使用官方仓库 `pnpm --registry https://registry.npmjs.org i`
|
||||
</details>
|
||||
|
||||
桌面端进入 app 文件夹运行:
|
||||
|
||||
* `pnpm install electron@21.2.0 -D`
|
||||
* `pnpm install electron@21.2.3 -D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue