Webpack安装抛出错误UNMET PEER DEPENDENCY webpack@4.6.0无效

时间:2018-04-28 16:06:17

标签: reactjs webpack babel-loader

我正在尝试编译一个旧项目。 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  

0 个答案:

没有答案