npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: vuex@4.1.0 npm ERR! Found: vue@2.7.14 npm ERR! node_modules/vue npm ERR! peer vue@"^2.5.17" from element-ui@2.15.13 npm ERR! node_modules/element-ui npm ERR! element-ui@"^2.15.13" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vue@"^3.2.0" from vuex@4.1.0 npm ERR! node_modules/vuex npm ERR! vuex@"^4.1.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: vue@3.3.4 npm ERR! node_modules/vue npm ERR! peer vue@"^3.2.0" from vuex@4.1.0 npm ERR! node_modules/vuex npm ERR! vuex@"^4.1.0" 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! See D:\NVM\node_cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! D:\NVM\node_cache\_logs\2023-06-05T01_29_40_930Z-debug-0.log
时间: 2023-08-27 16:18:09 浏览: 230
从零开始在NPM上发布一个Vue组件的方法步骤
这是一个npm安装包的错误提示,可能是因为你的依赖包版本不兼容所致。建议你检查你的依赖包版本,或者尝试使用--force或--legacy-peer-deps参数重新运行命令。你可以在D:\NVM\node_cache\eresolve-report.txt文件中查看完整报告,也可以在D:\NVM\node_cache\_logs\2023-06-05T01_29_40_930Z-debug-0.log文件中查看此次运行的完整日志。
阅读全文