I’m installing angular-in-memory-web-api, npm output these errors:
ionic-hello-world@ /home/edxz/Documents/projects/ionic2
├── angular-in-memory-web-api@0.2.4
└── UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @angular/core@2.2.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/http@2.2.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN ionic-angular@2.0.0-rc.5 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
When I tried to run:
$ npm i rxjs --save
it throws this error
ionic-hello-world@ /home/edxz/Documents/projects/ionic2
└── UNMET PEER DEPENDENCY rxjs@5.1.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @angular/core@2.2.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/http@2.2.1 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN ionic-angular@2.0.0-rc.5 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm ERR! code 1
I’ve tried running npm cache clear but its not solving this issue
I checked the node_modules folder, the angular-in-memory-web-api folder is there but I cannot find the InMemoryDbService class so I cannot import it.
what can I do to fix it? I need to use InMemoryDbService for my app while waiting for the backend to be finished.