question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to fetch plugin de.appplant.cordova.plugin.local-notification

See original GitHub issue

Unable 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
stevesumcommented, Jul 23, 2017

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:

Same here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/katzer/cordova-plugin-local-notifications/issues/1345#issuecomment-317239905, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQrULRifSQwlk-3aHMx2ZwDy24rIUdpks5sQw-lgaJpZM4OTkNS .

12reactions
Medaycommented, Aug 11, 2017

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:

  • remove platforms android and ios (ionic cordova platform rm)
  • remove plugins: cordova-plugin-device, cordova-plugin-app-event, de.appplant.cordova.plugin.local-notification (through cordova plugin rm, npm rm or manually in the nodes_modules and package.json)
  • install separately: cordova-plugin-device, cordova-plugin-app-event, de.appplant.cordova.plugin.local-notification (ionic cordova plugin add)
  • install platforms (ionic cordova platform add)

I hope this will work for you too

Read more comments on GitHub >

github_iconTop Results From Across the Web

An error occurred while running cordova plugin add de ...
All I'm trying to do is load the plugins as described on Ionic's site: https://ionicframework.com/docs/native/local-notifications/ and I they ...
Read more >
Failed running cordova plugin add de.appplant ... - Ionic Forum
An error occurred while running cordova plugin add de.appplant.cordova.plugin.local-notification --save (exit code 1):
Read more >
Developers - Error: Failed to fetch plugin de.appplant.cordova ...
Unable to install $ ionic cordova plugin add de.appplant.cordova.plugin.local-notification as described on Ionic's website: ...
Read more >
[Local Notifications Plugin] No enum constant de.appplant ...
A fatal error has occurred. Please contact OutSystems support: No enum constant de.appplant.cordova.plugin.notification.trigger.DateTrigger.
Read more >
Got error "Failed to fetch plugin" when exporting to Android
First, I can build APK file from sample project (tested and work), but I'm always get this problem when exporting to Android (Cordova,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found