錯誤截圖
解決方法
package.json檔案中修改dev項為set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve:
"scripts": {
"dev": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
},