From 189100f74e26bf25fc81f95a6a7ab8c2e99f6d70 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 22 Apr 2025 12:07:07 +0800
Subject: [PATCH] 优化低版本node无法启动的问题
---
ruoyi-ui/package.json | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json
index c9de4a1..fc99314 100644
--- a/ruoyi-ui/package.json
+++ b/ruoyi-ui/package.json
@@ -5,9 +5,9 @@
"author": "若依",
"license": "MIT",
"scripts": {
- "dev": "vue-cli-service serve",
- "build:prod": "vue-cli-service build",
- "build:stage": "vue-cli-service build --mode staging",
+ "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
+ "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
+ "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
},
--
Gitblit v1.9.3