瀏覽代碼

优化低版本node无法启动的问题

RuoYi 1 年之前
父節點
當前提交
189100f74e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      ruoyi-ui/package.json

+ 3 - 3
ruoyi-ui/package.json

@@ -5,9 +5,9 @@
5 5
   "author": "若依",
6 6
   "license": "MIT",
7 7
   "scripts": {
8
-    "dev": "vue-cli-service serve",
9
-    "build:prod": "vue-cli-service build",
10
-    "build:stage": "vue-cli-service build --mode staging",
8
+    "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
9
+    "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
10
+    "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
11 11
     "preview": "node build/index.js --preview",
12 12
     "lint": "eslint --ext .js,.vue src"
13 13
   },