0


ruoyi前端vue项目启动问题

我这里拉取的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文件里的配置按照下面修改一下

"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"
  },

本文转载自: https://blog.csdn.net/xiaoliyo_/article/details/135368635
版权归原作者 xiaoliyo_ 所有, 如有侵权,请联系我们删除。

“ruoyi前端vue项目启动问题”的评论:

还没有评论