The package rxjs@5.0.0-beta.6 does not satisfy its siblings' peerDependencies requirements?

后端 未结 4 2064
半阙折子戏
半阙折子戏 2021-02-07 20:30

I am trying to install @ngrx/store module in my angular 2 app. I am using npm install and getting the following error:

npm ERR! peerinvalid The package rxjs@5.0.         


        
相关标签:
4条回答
  • 2021-02-07 21:06

    I had the same issue and just updated to rxjs@5.0.1

    npm install rxjs@5.0.1 --save
    

    That did the trick.

    0 讨论(0)
  • 2021-02-07 21:10

    I was on node v 0.12 and upgrading to version 6.9 fixed this

    0 讨论(0)
  • 2021-02-07 21:12

    The problem is that you have both beta.16 and rc.0 as dependencies in the same project. Since angular changed the npm package name between the two, you will need to uninstall and remove dependencies on whichever one you don't want. Assuming you want to upgrade to the rc.0, remove it from your package.json and run:

    npm uninstall angular2
    
    0 讨论(0)
  • 2021-02-07 21:23

    Try running this, it might work for you:

    npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic rxjs@5.0.0-beta.6 zone.js@0.6.12

    0 讨论(0)
提交回复
热议问题