katzer / cordova-plugin-app-event

Cordova App-Event Plugin
Apache License 2.0
26 stars 23 forks source link

Package.json not found Cordova 7.0 #12

Closed gaurav-vachhani closed 7 years ago

gaurav-vachhani commented 7 years ago

Facing issue with this plugin where package.json file not found while compiling with Cordova 7.0.

Error: Failed to fetch plugin https://github.com/katzer/cordova-plugin-local-notifications.git 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 /Adreno Projects/Estays Project/Estays/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 '/Adreno Projects/Estays Project/Estays/node_modules/cordova-plugin-app-event/package.json'

npm ERR! A complete log of this run can be found in: npm ERR! /Users/Vachhani/.npm/_logs/2017-07-19T07_32_57_641Z-debug.log

fizdalf commented 7 years ago

I have the same issue, first symbolic links, and then if I remove the symbolic links it just says

npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules\cordova-plugin-app-event" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
ghost commented 7 years ago

@fizdalf @gaurav-vachhani did you guys solve your problems or do you need any further help?

fizdalf commented 7 years ago

I had to use a fork of this repo to make it work,

https://github.com/martinsimonovskipc/cordova-plugin-app-event that sorts the issue out.

Want me to make a pull request with that?

katzer commented 7 years ago

I will update the package.json file and push to NPM.

BTW with the next version of the local-notification plugin the cordova-plugin-app-event plugin isn't required anymore. See branch x.

katzer commented 7 years ago

See 96cbbab. Have released v1.2.1 on NPM.

Seanny123 commented 7 years ago

I'm also getting the same error, however I was able to add branch x of cordova-plugin-local-notifications by running:

rm -r node_modules/cordova-plugin-app-event
cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications#x
gaurav-vachhani commented 7 years ago

@ahermle93 I have solved this issue after installing the 1.2.1 version of cordova-plugin-app-event.

If anyone else face this same problem, please install the specific (1.2.1) version of cordova-plugin-app-event and then cordova-plugin-local-notifications.

FatehiAlqadasi commented 6 years ago

@gaurav-vachhani thank you