showdoc
showdoc copied to clipboard
前端页面二开时 npm install报错提示 webpack问题
PS F:\我的下载\web_src\web_src> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^3.12.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^5.0.0" from [email protected]
npm ERR! node_modules/style-loader
npm ERR! dev style-loader@"^3.3.1" 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\zaidu\AppData\Local\npm-cache\_logs\2024-01-20T15_56_18_903Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\zaidu\AppData\Local\npm-cache\_logs\2024-01-20T15_56_18_903Z-debug-0.log
PS F:\我的下载\web_src\web_src> node -v
v18.17.1
PS F:\我的下载\web_src\web_src>
由于历史问题,建议使用 node14。node 可以多版本共存,可以搜一下网络。
肖书南 @.***>于2024年1月21日 周日上午12:06写道:
image.png (view on web) https://github.com/star7th/showdoc/assets/92215296/7692fa70-9a36-4828-a3b0-0ecc72164ed7
PS F:\我的下载\web_src\web_src> npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @.*** npm ERR! Found: @.*** npm ERR! node_modules/webpack npm ERR! dev webpack@"^3.12.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^5.0.0" from @.*** npm ERR! node_modules/style-loader npm ERR! dev style-loader@"^3.3.1" 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\zaidu\AppData\Local\npm-cache_logs\2024-01-20T15_56_18_903Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\zaidu\AppData\Local\npm-cache_logs\2024-01-20T15_56_18_903Z-debug-0.log PS F:\我的下载\web_src\web_src> node -v v18.17.1 PS F:\我的下载\web_src\web_src>
— Reply to this email directly, view it on GitHub https://github.com/star7th/showdoc/issues/2134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQZHLRNPLEFXFPFSGVIO2LYPPTQ3AVCNFSM6AAAAABCDJCHTGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4TEMJTHAYTGMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
由于历史问题,建议使用 node14。node 可以多版本共存,可以搜一下网络。 肖书南 @.>于2024年1月21日 周日上午12:06写道: ... image.png (view on web) https://github.com/star7th/showdoc/assets/92215296/7692fa70-9a36-4828-a3b0-0ecc72164ed7 PS F:\我的下载\web_src\web_src> npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @. npm ERR! Found: @.*** npm ERR! node_modules/webpack npm ERR! dev webpack@"^3.12.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^5.0.0" from @.*** npm ERR! node_modules/style-loader npm ERR! dev style-loader@"^3.3.1" 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\zaidu\AppData\Local\npm-cache_logs\2024-01-20T15_56_18_903Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: C:\Users\zaidu\AppData\Local\npm-cache_logs\2024-01-20T15_56_18_903Z-debug-0.log PS F:\我的下载\web_src\web_src> node -v v18.17.1 PS F:\我的下载\web_src\web_src> — Reply to this email directly, view it on GitHub <#2134>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQZHLRNPLEFXFPFSGVIO2LYPPTQ3AVCNFSM6AAAAABCDJCHTGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4TEMJTHAYTGMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
https://cdn.npmmirror.com/packages/DOMino/2.1.6/DOMino-2.1.6.tgz这个cdn是过期的应该替换为https://cdn.npmmirror.com/packages/domino/2.1.6/domino-2.1.6.tgz
如果只是这个问题的话,还是比较好办的。我已经修改,提交仓库了