ruoyi前端vue项目启动问题
xiaoliyo_ 2024-07-12 11:33:01 阅读 56
我这里拉取的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文件里的配置按照下面修改一下
<code>"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"
},
声明
本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。