This commit is contained in:
Liang Ding 2022-11-15 09:37:23 +08:00
parent 2a67a917b8
commit 43e9927e3d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 18 additions and 18 deletions

View file

@ -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`

View file

@ -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`