From f393b298294e4a4a4d97542787db9a93c38c406a Mon Sep 17 00:00:00 2001 From: coder4lin Date: Mon, 11 Mar 2024 17:46:56 +0800 Subject: [PATCH] Update package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm 高版本需要加上该指令否则会报异常 --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 1ad629e9e..cb55204dc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "scripts": { "bootstrap": "npm install --legacy-peer-deps", - "start": "craco start", + "start": "export NODE_OPTIONS=--openssl-legacy-provider && craco start", "build": "cross-env GENERATE_SOURCEMAP=false craco build", "build:task": "rollup -c", "build:all": "npm run build:theme && npm run build:task && npm run build",