node18以上版本 运行 npm run dev 报错
在package.json的scripts中添加“SET NODE_OPTIONS=--openssl-legacy-provider &&“
"scripts": {
"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": "SET NODE_OPTIONS=--openssl-legacy-provider && node build/index.js --preview",
"lint": "SET NODE_OPTIONS=--openssl-legacy-provider && eslint --ext .js,.vue src"
},