您现在的位置是:首页 >技术教程 >ruoyi-vue-pro 开发指南网站首页技术教程
ruoyi-vue-pro 开发指南
快速启动(适合“后端”工程师) | ruoyi-vue-pro 开发指南 (iocoder.cn)
一 快速启动(适合“后端”工程师)
1 Error:(4, 47) java: 程序包cn.iocoder.yudao.framework.test.core.ut不存在
报错:
Information:java: Errors occurred while compiling module 'yudao-spring-boot-starter-biz-sms'
Information:javac 1.8.0_121 was used to compile java sources
Information:2023/4/26 14:45 - Build completed with 10 errors and 0 warnings in 43 s 933 ms
D:ideaProjectwebbaseframeworkjf-ruoyi-vue-proyudao-frameworkyudao-spring-boot-starter-mqsrcmainjavacniocoderyudaoframeworkmqjobRedisPendingMessageResendJob.java
D:ideaProjectwebbaseframeworkjf-ruoyi-vue-proyudao-frameworkyudao-spring-boot-starter-biz-smssrc estjavacniocoderyudaoframeworksmscoreclientimplaliyunAliyunSmsClientTest.java
Error:(4, 47) java: 程序包cn.iocoder.yudao.framework.test.core.ut不存在
Error:(34, 56) java: 程序包cn.iocoder.yudao.framework.test.core.util不存在
Error:(45, 42) java: 找不到符号
符号: 类 BaseMockitoUnitTest
D:ideaProjectwebbaseframeworkjf-ruoyi-vue-proyudao-frameworkyudao-spring-boot-starter-biz-smssrc estjavacniocoderyudaoframeworksmscoreclientimplaliyunAliyunSmsCodeMappingTest.java
Error:(3, 47) java: 程序包cn.iocoder.yudao.framework.test.core.ut不存在
Error:(16, 47) java: 找不到符号
符号: 类 BaseMockitoUnitTest
D:ideaProjectwebbaseframeworkjf-ruoyi-vue-proyudao-frameworkyudao-spring-boot-starter-biz-smssrc estjavacniocoderyudaoframeworksmscoreclientimpl encentTencentSmsClientTest.java
Error:(16, 47) java: 程序包cn.iocoder.yudao.framework.test.core.ut不存在
Error:(32, 56) java: 程序包cn.iocoder.yudao.framework.test.core.util不存在
Error:(43, 43) java: 找不到符号
符号: 类 BaseMockitoUnitTest
D:ideaProjectwebbaseframeworkjf-ruoyi-vue-proyudao-frameworkyudao-spring-boot-starter-biz-smssrc estjavacniocoderyudaoframeworksmscoreclientimpl encentTencentSmsCodeMappingTest.java
Error:(5, 47) java: 程序包cn.iocoder.yudao.framework.test.core.ut不存在
Error:(16, 48) java: 找不到符号
符号: 类 BaseMockitoUnitTest
原因:解决方案:
参考启动文档,先做一次mvc编译
mvn clean install package '-Dmaven.test.skip=true'
2 idea的Terminal 报错:bash: mvn: command not found
报错:
52901@DESKTOP-6UKF6U6 MINGW64 /d/ideaProject/webbaseframework/jf-ruoyi-vue-pro (master)
$ mvn clean install package '-Dmaven.test.skip=true'
bash: mvn: command not found
原因:解决方案:
只需要在系统环境变量中配置MAVEN和JAVA即可。
注意还要重启下IDEA才会启效果,可以用mvn -version来试下,如果有对应版本信息,就说明设置成功了(cnblogs.com)。
3 idea报错:Error running 'YudaoServerApplication': Command line is too long. Shorten command line for YudaoServerApplication or also for Spring Boot default configuration
(455条消息) idea 启动报错 Command line is too long_idea报错命令行太长_Bee.F的博客-CSDN博客
4 idea的Terminal 报错:Smart commands execution Highlighted commands can be interpreted and executed
报错:
Smart commands execution Highlighted commands can be interpreted and executed by the IDE in a smart way. Press Ctrl+Enter to try this, or Enter to run the command in the console as usual. You can turn this behavior on/off in Preferences | Tools | Terminal. Got it!
原因:解决方案:pycharm、webstorm 命令行 Smart commands execution Highlighted commands can be interpreted and executed
5 使用maven打包失败
报错:
Unknown lifecycle phase "'-Dmaven.test.skip=true'". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact
-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes,
generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
原因:解决方案:
参考启动文档
Maven 补充说明:
① 只有首次需要执行 Maven 命令,解决基础 pom.xml
文件不存在,导致报 BaseDbUnitTest 类不存在的问题。
② 如果执行报 Unknown lifecycle phase “.test.skip=true”
错误,使用 mvn clean install package -Dmaven.test.skip=true
即可。
6 redis版本低于5
参考启动文档:Redis 安装指南(Windows 版本) | 芋道源码 —— 纯源码解析博客 (iocoder.cn)
二 快速启动(适合“前端”工程师)
1 npm install --global yarn报错是
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
已经安装过了
2 安装依赖报错:error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module
报错:
error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.12.1"
error Found incompatible module.
原因:nodes版本过高
在 yarn install的时候报
error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.3.0"
解决方案1:
需要执行
yarn config set ignore-engines true
忽略版本引擎检测
然后在yarn install
解决方案2(v14.17.3):(455条消息) 如何把已安装的nodejs高版本降级为低版本_nodejs降低版本_深究猿码的博客-CSDN博客
三 演示模式,无法进行写操作
报错:
演示模式,无法进行写操作
参考 https://doc.iocoder.cn/ 教程
5 分钟搭建本地环境
解决方案:
前端运行时:npm run dev