pmwisdom/cordova-background-geolocation-services

Can't install plugin

Closed this issue · 1 comments

Hi, I previously installed this plugin on my cordova app, and everything was ok.
Today I had to remove and add all the plugins , but I get an error when it comes to this one. It seems npm can't get the plugin

The error I get is:

...cordova plugin add org.flybuy.cordova.background-location-services@1.1.1
Error: Failed to fetch plugin org.flybuy.cordova.background-location-services@1.1.1 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 1 Error output:
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "org.flybuy.cordova.background-location-services@1.1.1" "--save"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/org.flybuy.cordova.background-location-services
npm ERR! 404
npm ERR! 404 'org.flybuy.cordova.background-location-services' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\verrascinal.IMA\Documents\Projects\FromBitBucket\geoBeacon-cordova\node_modules\npm-debug.log

Obviously I checked internet connection availability, but the problem is still there.

I also tried to install the plugin from a local copy of the repository, but I get this error:

cordova plugin add C:\Users......\cordova-background-geolocation-services-master\cordova-background-geolocation-services-master
Error: Failed to get absolute path to installed module

Any advice on how to fix it? I can checkout a previous version of the project, with the plugin installed, but I'd rather fix this problem

I was able to install the plugin using a downloaded version and the --nofetch parameter (solution found on SO)