pull/376/head
王良 2024-11-07 17:25:37 +08:00
parent 715e747a99
commit 2f08897ba0
2 changed files with 4 additions and 9 deletions

View File

@ -367,20 +367,15 @@ git clone https://github.com/docmirror/dev-sidecar
cd dev-sidecar cd dev-sidecar
# 注意不要使用 `npm install` 来安装依赖,因为 `lerna bootstrap` 会自动安装依赖 # 注意不要使用 `npm install` 来安装依赖,因为 `lerna bootstrap` 会自动安装依赖
# lerna bootstrap lerna bootstrap
# 如果 `lerna bootstrap` 有报错可以尝试执行如下两行命令用yarn替换掉npm # 如果 `lerna bootstrap` 有报错可以尝试执行如下两行命令用yarn替换掉npm
# 感觉yarn的速度会更快 #cnpm install -g yarn
cnpm install -g yarn #lerna bootstrap --npm-client=yarn
lerna bootstrap --npm-client=yarn
# 运行DevSidecar # 运行DevSidecar
cd packages/gui cd packages/gui
npm run electron npm run electron
# 修改.yarnrc文件设置切换镜像源
registry=https://registry.npmmirror.com/
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
``` ```
> 如果electron依赖包下载不动可以开启ds的npm加速 > 如果electron依赖包下载不动可以开启ds的npm加速

View File

@ -3,7 +3,7 @@
"version": "1.8.9", "version": "1.8.9",
"private": false, "private": false,
"license": "MPL-2.0", "license": "MPL-2.0",
"main": "index.js", "main": "background.js",
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",