错误截图
解决方法
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"
},
标签:npm,0308010C,vue,cli,service,--,报错,build
From: https://www.cnblogs.com/lzb1234/p/18070325