cordova-plugin-local-notifications: Unable to install the plugin in Windows

Your Environment

  • Plugin version: 0.8.3
  • Platform: Windows 10
  • OS version: 1607
  • Device manufacturer / model: -
  • Cordova version (cordova -v): 7.0.1
  • Cordova platform version (cordova platform ls):
Installed platforms:
  android 6.2.3
  browser 4.1.0
  ios 4.4.0
Available platforms:
  blackberry10 ~3.8.0 (deprecated)
  webos ~3.7.0
  windows ~5.0.0
  • Plugin config
<?xml version='1.0' encoding='utf-8'?>
<widget id="fi.utu.ville.ViLLEMobile" version="1.2.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.
apache.org/ns/1.0">
...
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="mailto:*" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="SplashScreen" value="splash" />
    <preference name="SplashScreenDelay" value="5000" />
    <preference name="Orientation" value="default" />
    <engine name="android" spec="^6.2.3" />
    <engine name="browser" spec="^4.1.0" />
    <engine name="ios" spec="^4.4.0" />
    <plugin name="cordova-plugin-console" spec="^1.0.7" />
    <plugin name="cordova-plugin-device" spec="^1.1.6" />
    <plugin name="cordova-plugin-dialogs" spec="^1.3.3" />
    <plugin name="cordova-plugin-globalization" spec="^1.0.7" />
    <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
    <plugin name="cordova-plugin-network-information" spec="^1.3.3" />
    <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
</widget>

What happens

Trying to install the plugin but it fails with following error:

Failed to install 'de.appplant.cordova.plugin.local-notification': Error
    at C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:205:33
    at _rejected (C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\
q.js:864:24)
    at C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:890:30
    at Promise.when (C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules
\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova
-fetch\node_modules\q\q.js:808:41)
    at C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:624:44
    at runSingle (C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\
q.js:137:13)
    at flush (C:...\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js
:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)
Error: Failed to fetch plugin cordova-plugin-app-event via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963229 Error output:
npm ERR! path C:\...\node_modules\cordova-plugin-app-event\package.json
npm ERR! code ELOOP
npm ERR! errno -4067
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open 'C:\...\node_modules\co
rdova-plugin-app-event\package.json'

I’m not even able to open the the cordova-plugin-app-event folder in Windows explorer.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 21 (1 by maintainers)

Most upvoted comments

@d3w201 thank you very much! I use your method to solve my problem. I do not have a MAC,so I doing this in my windows: install plugin: cordova plugin add cordova-plugin-app-event and install plugin: cordova plugin add de.appplant.cordova.plugin.local-notification then there is no problems.

[i SOLVED doing this]

cordova plugin rm de.appplant.cordova.plugin.local-notification

cordova plugin add cordova-plugin-device

then copy from my MAC project directory : “myProject/plugin/cordova-plugin-app-event” to my WINDOWS project directory : “myProject/plugin/”

after this try again to install plugin:

cordova plugin add de.appplant.cordova.plugin.local-notification

4 me it works! 😉

There are very, very few people doing stuff with Windows and this plugin. You may struggle to get help