Error: Failed to fetch plugin de.appplant.cordova.plugin.local-notification
See original GitHub issueUnable to install $ ionic cordova plugin add de.appplant.cordova.plugin.local-notification as described on Ionic’s website: http://ionicframework.com/docs/native/local-notifications/
I get the following:
cordova plugin add de.appplant.cordova.plugin.local-notification --save ✖ Running command - failed!
[ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova plugin add de.appplant.cordova.plugin.local-notification --save (exit code 1):
Error: Failed to fetch plugin
de.appplant.cordova.plugin.local-notification@^0.8.5 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/laroca/Documents/demo/node_modules/cordova-plugin-app-event/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
Your Environment
-
Plugin version:
-
Platform: Ionic Framework crossplatform env.
-
OS version: Latest MAC O.S.
-
Device manufacturer / model: n/a…just trying to install the plugin.
-
Cordova version (
cordova -v
): -
Cordova platform version (
cordova platform ls
):
“cordova-android”: “^6.2.3”, -
Plugin config
-
Ionic Version (if using Ionic) 2.0
Expected Behavior
Tell us what should happen
Actual Behavior
Tell us what happens instead
Steps to Reproduce
Reproduce this issue; include code to reproduce, if relevant
- …
- …
- …
- …
Context
What were you trying to do?
Debug logs
Include iOS / Android logs
- ios XCode logs
- Android: $ adb logcat
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:21 (1 by maintainers)
Top GitHub Comments
This problem is probably because you use cordova 7. Try use the --nofetch option to get the previous behaviour of the cordova.
cordova plugin add {plugin-name} --nofetch
The cordova 7 uses the npm to install the plugins, and probably your npm is not globally installed, or misconfigured.
2017-07-23 11:17 GMT+02:00 Alexandru Robert notifications@github.com:
I had the same error. macOS: 10.12.6 node: 8.3.0 npm: 5.3.0 cordova: 7.0.1 ionic v1 (but I don’t think this is a problem)
Now it’s working but I had to “clean” my project first:
I hope this will work for you too