ruoyi前端vue项目启动问题

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

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

转载请说明出处内容投诉
CSS教程_站长资源网 » ruoyi前端vue项目启动问题

发表评论

欢迎 访客 发表评论

一个令你着迷的主题!

查看演示 官网购买