Explorar el Código

更新包安装的正确方式

mrh hace 2 años
padre
commit
53941dcad1
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  1. 8 0
      README.md
  2. 1 1
      package.json

+ 8 - 0
README.md

@@ -1,5 +1,13 @@
 # 介绍
 # 介绍
 ```shell
 ```shell
+# 安装依赖
+npm install --save-dev
+npm install -g cnpm --registry=https://registry.npm.taobao.org
+cnpm install --save-dev electron
+```
+
+# 开发
+```shell
 npm init vite
 npm init vite
 # project name:随意填  readit
 # project name:随意填  readit
 npm install 
 npm install 

+ 1 - 1
package.json

@@ -3,7 +3,6 @@
   "private": true,
   "private": true,
   "version": "0.0.0",
   "version": "0.0.0",
   "main": "main.js",
   "main": "main.js",
-
   "scripts": {
   "scripts": {
     "dev": "vite",
     "dev": "vite",
     "build": "vite build",
     "build": "vite build",
@@ -18,6 +17,7 @@
   },
   },
   "devDependencies": {
   "devDependencies": {
     "@vitejs/plugin-vue": "^4.2.3",
     "@vitejs/plugin-vue": "^4.2.3",
+    "electron": "^27.0.3",
     "vite": "^4.4.5"
     "vite": "^4.4.5"
   }
   }
 }
 }