npm - Using angular-in-memory-web-api with Angular CLI -
i'm running frustrating issues while attempting add angular-in-memory-web-api
angular 2 project created angular cli. here current dependencies object within package.json
:
"dependencies": { "@angular/common": "2.0.0", "@angular/compiler": "2.0.0", "@angular/core": "2.0.0", "@angular/forms": "2.0.0", "@angular/http": "2.0.0", "@angular/platform-browser": "2.0.0", "@angular/platform-browser-dynamic": "2.0.0", "@angular/router": "3.0.0", "@angular/upgrade": "2.0.0", "core-js": "^2.4.1", "reflect-metadata": "^0.1.3", "rxjs": "5.0.0-beta.12", "systemjs": "0.19.27", "zone.js": "^0.6.23", "angular-in-memory-web-api": "0.1.13", "bootstrap": "^3.3.6" },
when running npm install
following errors:
npm warn @angular/compiler-cli@2.1.2 requires peer of @angular/compiler@2.1.2 none installed. npm warn @angular/compiler-cli@2.1.2 requires peer of @angular/core@2.1.2 none installed. npm warn @angular/platform-server@2.1.2 requires peer of @angular/common@2.1.2 none installed. npm warn @angular/platform-server@2.1.2 requires peer of @angular/compiler@2.1.2 none installed. npm warn @angular/platform-server@2.1.2 requires peer of @angular/core@2.1.2 none installed. npm warn @angular/platform-server@2.1.2 requires peer of @angular/platform-browser@2.1.2 none installed. npm warn @angular/compiler-cli@0.6.4 requires peer of @angular/platform-server@2.0.2 none installed. npm warn angular2-in-memory-web-api@0.0.14 requires peer of @angular/core@2.0.0-rc.4 none installed. npm warn angular2-in-memory-web-api@0.0.14 requires peer of @angular/http@2.0.0-rc.4 none installed. npm warn angular2-in-memory-web-api@0.0.14 requires peer of rxjs@5.0.0-beta.6 none installed.
i tried updating dependencies based on above warning, ended new list of similar warning , began feel "chasing tail". there straightforward way add angular-in-memory-web-api angular cli created app?
those warnings (not errors). npm peer dependency warnings natural occurrence. majority of time, not hinder ability use module. use cli and angular-in-memory-web-api
. adding following (which have) enough make work (using default angular versions provided cli).
"angular-in-memory-web-api": "0.1.13", // version should exact // open regression issue latest 0.1.14
if you've been changing around versions of everything, best thing delete project node_modules
, reinstall everything.
Comments
Post a Comment