1st I tried to install as I use to, then, I get an error in import { WebStorageModule, LocalStorageService } from "angular2-localstorage"; as it angular2-localstorage was not found.
Installed typings as someone suggested.
Installed by using npm install marcj/angular2-localstorage
Now, a new issue,
$ npm install marcj/angular2-localstorage
> angular2-localstorage@0.4.0 postinstall /Users/fafa/Develop/benjamin/frontend/node_modules/angular2-localstorage
> typings install
typings WARN deprecated 11/21/2016: "registry:dt/node#6.0.0+20160921192128" is deprecated (updated, replaced or removed)
└── node (global)
frontend@0.0.0 /Users/fafa/Develop/benjamin/frontend
├── angular2-localstorage@0.4.0 (git://github.com/marcj/angular2-localstorage.git#85b25caca6eb969632e258fa5587e85e871b38b6)
└── UNMET PEER DEPENDENCY zone.js@0.7.7
npm WARN angular2-localstorage@0.4.0 requires a peer of zone.js@^0.6.25 but none was installed.
$ npm install
npm WARN angular2-localstorage@0.4.0 requires a peer of zone.js@^0.6.25 but none was installed.
I do have a package.json with
"dependencies": {
...
"zone.js": "^0.7.2"
},
Any ideas?
pst: i also did npm cache clean and rm -rf dist node_modules before npm install again.
1st I tried to install as I use to, then, I get an error in
import { WebStorageModule, LocalStorageService } from "angular2-localstorage";as itangular2-localstoragewas not found.Installed
typingsas someone suggested.Installed by using
npm install marcj/angular2-localstorageNow, a new issue,
I do have a
package.jsonwithAny ideas?
pst: i also did
npm cache cleanandrm -rf dist node_modulesbeforenpm installagain.