1、具体问题如下:
npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR!npm ERR! While resolving: [email protected]npm ERR! Found: [email protected]npm ERR! node_modules/webpacknpm ERR! peer [email protected]”^4.0.0 || ^5.0.0″ from [email protected]npm ERR! node_modules/html-webpack-pluginnpm ERR! peer [email protected]”^3.0.0 || ^4.0.0″ from [email protected]npm ERR! node_modules/script-ext-html-webpack-pluginnpm ERR! dev [email protected]”2.1.5″ from the root projectnpm ERR!npm ERR! Could not resolve dependency:npm ERR! peer [email protected]”^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0″ from [email protected]npm ERR! node_modules/script-ext-html-webpack-pluginnpm ERR! dev [email protected]”2.1.5″ from the root projectnpm ERR!npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with –force, or –legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.npm ERR!
2、问题剖析
npm版本过高
3、问题解决
npm install [email protected] -g