npm install 报错

一 问题

npm install 报错

 

二 解决

看报错提示内容"this command with --force or --legacy-peer-deps"

命令改成这样:npm install --force 

 

三 备注

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-manage-system@3.8.7
npm ERR! node_modules/vite
npm ERR!   dev vite@"^5.0.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2.9.0 || ^3.0.0 || ^4.0.0" from vite-plugin-enhance-log@0.5.2
npm ERR! node_modules/vite-plugin-enhance-log
npm ERR!   dev vite-plugin-enhance-log@"^0.5.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-05-17T06_22_59_523Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-05-17T06_22_59_523Z-debug-0.log

 

posted @ 2024-05-17 14:28  qx和世界  阅读(69)  评论(0编辑  收藏  举报