Npm peer dependency error

前端 未结 2 448
北海茫月
北海茫月 2020-12-20 16:10

I am getting the npm peer dependency error repeatedly with npm install command . This is my package.json on which i have unmet peer dependency on react and webpack



        
2条回答
  •  盖世英雄少女心
    2020-12-20 16:55

    There are warnings, not errors, but it's still worthwhile to fix.

    • react-datepicker: you should upgrade to the latest version (0.27.0), which declares react@^15.0.0 as a peer dependency.
    • babel-loader: the installation instructions explain that with npm@3 you need to declare peer dependencies (like webpack) explicitly in your package.json (using npm i webpack --save-dev).

    The desktop-react warnings can be ignored.

提交回复
热议问题