我这里拉取的ruoyi的blog的源码,启动前端项目报错
> ruoyi@3.8.0 dev
> set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --open
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
解决:把package.json文件里的配置按照下面修改一下
javascript">"scripts": {
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --open",
"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"
},
//改成
"scripts": {
"dev": "vue-cli-service serve --open",
"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"
},