建站网址不安全,龙岩小程序推广,天津自助建站,wordpress防盗链接三四年前的一个项目#xff0c;打开#xff0c;npm install 一下#xff0c;结果报 ERESOLVE unable to resolve dependency tree。 以前install都一切顺利#xff0c;现在就不行#xff0c;那很大的可能是npm的版本不同。
PS D:\workSpace\code\*-admin-ui-master n…三四年前的一个项目打开npm install 一下结果报 ERESOLVE unable to resolve dependency tree。 以前install都一切顺利现在就不行那很大的可能是npm的版本不同。
PS D:\workSpace\code\*-admin-ui-master npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: *-admin0.1.0
npm ERR! Found: html-webpack-plugin4.0.0-alpha
npm ERR! node_modules/html-webpack-plugin
npm ERR! dev html-webpack-plugin4.0.0-alpha from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer html-webpack-plugin^3.0.0 from script-ext-html-webpack-plugin2.0.1
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR! dev script-ext-html-webpack-plugin2.0.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\11703\AppData\Local\npm-cache\_logs\2023-11-02T07_24_59_256Z-eresolve-report.txtnpm ERR! A complete log of this run can be found in: C:\Users\11703\AppData\Local\npm-cache\_logs\2023-11-02T07_24_59_256Z-debug-0.log查看logs
Log files:
C:\Users\11703\AppData\Local\npm-cache\_logs\2023-11-02T07_24_59_256Z-debug-0.log# npm resolution error reportWhile resolving: *-admin0.1.0
Found: html-webpack-plugin4.0.0-alpha
node_modules/html-webpack-plugindev html-webpack-plugin4.0.0-alpha from the root projectCould not resolve dependency:
peer html-webpack-plugin^3.0.0 from script-ext-html-webpack-plugin2.0.1
node_modules/script-ext-html-webpack-plugindev script-ext-html-webpack-plugin2.0.1 from the root projectFix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
给出的建议是npm install --force 或者 --legacy-peer-deps
或者使用npx -p npm6 npm install --legacy-peer-deps指定npm的版本。