I’m following an Ionic 2 course on Plura Sight and I’m unable to install the ionic cordova native local notification plugin as described on Ionic’s site:
An error occurred while running cordova plugin add
de.appplant.cordova.plugin.local-notification --save (exit code 1):
Installing "de.appplant.cordova.plugin.local-notification" for android
Plugin dependency "cordova-plugin-device@1.1.4" already fetched, using
that version.
Dependent plugin "cordova-plugin-device" already installed on android.
Failed to install 'de.appplant.cordova.plugin.local-notification': Error
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
and
ELOOP: too many symbolic links encountered, open ‘/Users/laroca/Documents/elite-schedule-app/node_modules/cordova-plugin-app-event/package.json’
I faced the same issue today. My node and update versions were Node: v6.11.0 & NPM: 5.0.4
I updated both Node (downloaded the stable release) and NPM (command: npm install npm@latest -g).
Now the plugin has been installed successfully using the commands.
For latest IONIC 3,
So finally i solved this… follow these steps
1=>On node_modules remove de.applan… directory manually (if already available)
2=>Scroll on bottom of the node_modules directory see any not installed corova_device or de.applann… remove those…
3=> Remove the installed android platform
"ionic cordova platform remove android"
4=>Now Add the platform again
"ionic cordova platform add android"
5=>ionic cordova plugin add cordova-plugin-device
6=>ionic cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications.git
(!!! not use code which in ionic doc)
7=>npm install --save @ionic-native/phonegap-local-notification
8=>after the installation, enable the provider of local notification on app.module.ts…
//app.module.ts.
import { LocalNotifications } from ‘@ionic-native/local-notifications’;