🎨 Update npm mirror
This commit is contained in:
parent
42af6aba13
commit
05fad5f031
2 changed files with 8 additions and 8 deletions
8
.github/CONTRIBUTING.md
vendored
8
.github/CONTRIBUTING.md
vendored
|
@ -16,15 +16,15 @@ 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@28.1.4 -D`
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://registry.npmmirror.com/mirrors/electron/ pnpm install electron@28.1.4 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
|
||||
* `SET ELECTRON_MIRROR=https://registry.npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@28.1.4 -D`
|
||||
|
||||
NPM mirror:
|
||||
|
||||
* Use npmmirror China mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
|
||||
* Use npmmirror China mirror repository `pnpm --registry https://registry.npmmirror.com/ i`
|
||||
* Revert to using official repository `pnpm --registry https://registry.npmmirror.com i`
|
||||
|
||||
</details>
|
||||
|
||||
|
|
8
.github/CONTRIBUTING_zh_CN.md
vendored
8
.github/CONTRIBUTING_zh_CN.md
vendored
|
@ -18,16 +18,16 @@
|
|||
|
||||
* macOS/Linux:
|
||||
```
|
||||
ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@28.1.4 -D
|
||||
ELECTRON_MIRROR=https://registry.npmmirror.com/mirrors/electron/ pnpm install electron@28.1.4 -D
|
||||
```
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
|
||||
* `SET ELECTRON_MIRROR=https://registry.npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@28.1.4 -D`
|
||||
|
||||
NPM 镜像:
|
||||
|
||||
* 使用 npmmirror 中国镜像仓库 `pnpm --registry https://r.cnpmjs.org/ i`
|
||||
* 恢复使用官方仓库 `pnpm --registry https://registry.npmjs.org i`
|
||||
* 使用 npmmirror 中国镜像仓库 `pnpm --registry https://registry.npmmirror.com/ i`
|
||||
* 恢复使用官方仓库 `pnpm --registry https://registry.npmmirror.com i`
|
||||
</details>
|
||||
|
||||
桌面端进入 app 文件夹运行:
|
||||
|
|
Loading…
Add table
Reference in a new issue