Ionic 2 Local Notification install warnings

this is what i get when i run npm install --save @ionic-native/local-notifications

+-- UNMET PEER DEPENDENCY @ionic-native/core@^3.1.0
+-- @ionic-native/local-notifications@3.4.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":"win32","arch":"x64"})
npm WARN @ionic-native/local-notifications@3.4.4 requires a peer of @ionic-native/core@^3.1.0 but none was installe
d.
npm WARN @ionic-native/local-notifications@3.4.4 requires a peer of rxjs@^5.0.1 but none was installed.

I add everything to my page and when i try to run the ionic app, this is the error i get

Cannot find module "@ionic-native/core"

Is your CLI install globally? or just local?

Try this:

npm uninstall -g angular-cli
npm clear cache
npm install -g @angular/cli

To have the CLI global

After that, delete your node_modules folder and try to run again

npm install

I have never ran these commands before 'npm install -g @angular/cli’
only npm install -g cordova and npm install -g cordova ionic as per getting started tutorial.

I am creating a fresh v3 version and moving all my code to that (decided against the upgrade route)

I thought angular and its cli was already done for me as part of my install?

Angular CLI is part of ionic, I suggested this for you just to the case you already have a previous angular CLI and this are causing an conflit with new installation.

Because, if you already have an CLI, ionic will use this.

Upgrade solve your problem?

I am in the process of creating a new project using cli 3 beta 3 and framework 3, will report back as i go through this with latest stuff

What does the package.json of the project look like?
Did you install Ionic Native properly? https://ionicframework.com/docs/native/#Installation

I have no idea what @mmonte is talking about. You can indeed have both ionic-app-scripts and angular-cli in the same project, but it is by no means required. Angular-cli is emphatically NOT “a part of Ionic”.

1 Like