当前位置: 首页 > news >正文

Windows系统下,导入运行 RuoYi-Vue3 项目

基于SpringBoot+Vue3前后端分离的Java快速开发框架

一、后端

1.git下载代码

RuoYi-Vue:RuoYi-Vue: 基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统

git clone https://gitee.com/y_project/RuoYi-Vue.git

2.下载并启动 redis

 Redis for Windows:Releases · tporadowski/redis

redis-server.exe redis.windows.conf

3.创建数据库,导入SQL文件,项目中配置数据库信息

4. idea打开项目,启动项目

如果遇到问题,请参考Windows系统下,使用TortoiseGit下载ruoyi代码,并导入运行ruoyi项目-CSDN博客

二、前端

1.git下载代码

RuoYi-Vue3:RuoYi-Vue3: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统

git clone https://gitee.com/ys-gitee/RuoYi-Vue3.git

2.vscode打开项目

# 进入项目文件夹
cd RuoYi-Vue3# 命令打开vscode
code .打开view -> terminal# 安装依赖
npm install --registry=https://registry.npmmirror.com# 本地开发 启动项目
npm run dev# 前端访问地址 
http://localhost:80

3.遇到的问题

✘ [ERROR] Could not resolve "lodash-es"

    node_modules/lodash-unified/import.js:1:14:
      1 │ export * from 'lodash-es'
        ╵               ~~~~~~~~~~~

  You can mark the path "lodash-es" as external to exclude it from the bundle, which will remove
  this error and leave the unresolved path in the bundle.

D:\ruoyi_projects\RuoYi-Vue3\node_modules\esbuild\lib\main.js:1651
  let error = new Error(text);
              ^

Error: Build failed with 1 error:
node_modules/lodash-unified/import.js:1:14: ERROR: Could not resolve "lodash-es"
    at failureErrorWithLog (D:\ruoyi_projects\RuoYi-Vue3\node_modules\esbuild\lib\main.js:1651:15)
    at D:\ruoyi_projects\RuoYi-Vue3\node_modules\esbuild\lib\main.js:1059:25
    at D:\ruoyi_projects\RuoYi-Vue3\node_modules\esbuild\lib\main.js:1527:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Node.js v20.12.0

解决方法:

尝试删除了node_modules文件夹文件,重新安装包,无效,尝试以下操作:

npm view lodash-unified versionnpm install lodash-unified

三、结果



 

相关文章:

  • 解决ktransformers v0.3 docker镜像中 operator torchvision::nms does not exist 问题
  • mongoose插入文档,字段类型, 字段验证, 删除文档,更新文档,读取文档,查询文档的条件控制 ,字段筛选,数据排序,数据截取
  • C语言教程(二十四):C 语言中递归的详解
  • Alibaba第四版JDK源码学习笔记2025首次开源
  • C++搞定周岁.虚岁计算
  • 一页概览:统一数据保护方案
  • 【系统参数合法性校验】spring-boot-starter-validation
  • 前端Vue3 + 后端Spring Boot,前端取消请求后端处理逻辑分析
  • 【MySQL】(9) 视图
  • 跟我学C++中级篇——控制死锁
  • Qt开发:JSON字符串的序列化和反序列化
  • 【OSG学习笔记】Day 14: 操作器(Manipulator)的深度使用
  • 基于机器学习的电影票房预测
  • 万象生鲜配送系统代码2025年4月29日更新日志
  • LeetCode 155题解 | 最小栈
  • 【Leetcode 每日一题 - 补卡】2302. 统计得分小于 K 的子数组数目
  • Linux电源管理(3)_关机和重启的过程
  • 第十六届蓝桥杯 2025 C/C++组 密密摆放
  • 探索语音增强中的多尺度时间频率卷积网络(TFCM):代码解析与概念介绍
  • AI赋能的问答系统:2025年API接口实战技巧
  • 力箭二号火箭成功进行满载起竖试验,计划今年首飞发射轻舟飞船
  • 招行一季度净利372.86亿降2.08%,营收降逾3%
  • 烟花、美食和购物优惠都安排上了,上海多区开启热闹模式
  • 2025上海体育消费节启动,多形式联动打造体育消费盛宴
  • “85后”潘欢欢已任河南中豫融资担保有限公司总经理
  • 五一期间上海景观照明开启重大活动模式,外滩不展演光影秀