From 7a42255165091d274c1619c173074fa2ed066329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E5=88=AB?= <62596032+Tiper-In-Github@users.noreply.github.com> Date: Sun, 2 Apr 2023 02:48:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=E4=BF=AE=E5=A4=8D:=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B0=E7=89=88NodeJS=E8=BF=90=E8=A1=8C=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 具体修复了使用新版NodeJS运行项目时出现的OPENSSL相关的报错 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 02f68e23764..116a8bd8e5c 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features", "author": "Pan ", "scripts": { - "dev": "vue-cli-service serve", + "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "lint": "eslint --ext .js,.vue src", - "build:prod": "vue-cli-service build", - "build:stage": "vue-cli-service build --mode staging", + "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", "new": "plop", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",