我正在尝试编译一个旧项目。 npm install -D webpack
之前抱怨过webpack-cli安装问题。现在,如果我尝试使用最新的npm i -D webpack@4.6.0
,则会出现以下错误。
└──UNMETPEER DEPENDENCY webpack@4.6.0无效
npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
npm WARN webpack-dev-middleware@1.12.2 requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none was installed.
npm WARN webpack-dev-server@1.16.5 requires a peer of webpack@>=1.3.0 <3 but none was installed.
npm WARN react-tutorials@0.0.0 No repository field.
npm ERR! code 1