栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

若依学习记录1

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

若依学习记录1

若依学习记录1

使用的环境:遇到的问题

1.本地启动ruoyi-ui,执行npm run dev 报错,报错信息如下:

原因:解决方法:

使用的环境:
    RuoYi-Cloud-master(v3.4.0)nacos 2.xMySQL 8.0.20NginxRedis
遇到的问题 1.本地启动ruoyi-ui,执行npm run dev 报错,报错信息如下:
 ERROR  Failed to compile with 2 errors                          上午11:09:12
These dependencies were not found:

* highlight.js/lib/highlight in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/tool/gen/index.vue?vue&type=script&lang=js&
* highlight.js/styles/github-gist.css in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/tool/gen/index.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save highlight.js/lib/highlight highlight.js/styles/github-gist.css
原因:

npm install 安装的 highlight.js 的版本部分文件名称已更新和 ruoyi-ui 中的 src/views/tool/gen/index.vue 引入的名称不一致导致报错。

解决方法:

将 src/views/tool/gen/index.vue 红框中的内容修改为蓝色框中的名称。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/730548.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号