npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself

前端 未结 10 883
不知归路
不知归路 2020-11-29 15:44

I tried to run a project downloaded from github. Unfortunately, during npm install the following warnings were shown. I tried to change the version based on thi

10条回答
  •  醉酒成梦
    2020-11-29 16:30

    You need to only depend on one major version of angular, so update all modules depending on angular 2.x :

    • update @angular/flex-layout to ^2.0.0-beta.9
    • update @angular/material to ^2.0.0-beta.12
    • update angularfire2 to ^4.0.0-rc.2
    • update zone.js to ^0.8.18
    • update webpack to ^3.8.1
    • add @angular/cdk@2.0.0-beta.12 (required for @angular/material)
    • replace angular2-google-maps by @agm/core@1.0.0-beta.1 (new name)

提交回复
热议问题