搭建jeecg-boot时遇到的问题:
问题一:执行npm install时报warn
用webstorm导入jeecg-boot项目之后,运行npm install命令时报警如下,启动项目时报can not find node 8.*之类的错误。
D:\jeecgs\jeecg_boot\jeecg-boot-master\jeecg-boot-master\ant-design-jeecg-vue>npm install
npm WARN @ant-design/icons-vue@1.0.1 requires a peer of @ant-design/icons@~1.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
随后主要搜索了but none is installed. You must install peer dependencies yourself
这句代码的解决方式。
主要有以下方案: