I am trying to implement a QR code scanner, and upon adding this plugin
$ ionic cordova plugin add phonegap-plugin-barcodescanner
I am getting this following error.
Error: Failed to fetch plugin git+https://github.com/wildabeast/BarcodeScanner.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
please help me thank you in advance.
thaker
June 13, 2017, 6:31am
2
Please use this plugin, it is official on Cordova Documents.
cordova plugin add GitHub - phonegap/phonegap-plugin-barcodescanner: cross-platform BarcodeScanner for Cordova / PhoneGap
ngCordova BarCodeScanner
you need to chec once that all methods you want to use in that plugin defines in ngCordova plugin doc.
Hope it helps you
Don’t use ionic cordova both in command
$ ionic cordova plugin add phonegap-plugin-barcodescanner
Only write this command.
$ cordova plugin add phonegap-plugin-barcodescanner
$ cordova plugin add phonegap-plugin-barcodescanner
I have tried the above command but same error I am getting
1 Like
kashyap_dev:
I am trying to implement a QR code scanner, and upon adding this plugin
$ ionic cordova plugin add phonegap-plugin-barcodescanner
I am getting this following error.
Error: Failed to fetch plugin git+https://github.com/wildabeast/BarcodeScanner.git via registry.
That is strange.
ionic cordova plugin add phonegap-plugin-barcodescanner
should not download the wildabeast
plugin, but the newer one at GitHub - phonegap/phonegap-plugin-barcodescanner: cross-platform BarcodeScanner for Cordova / PhoneGap .
Post your ionic info
output please so we can learn a bit about your environment.
That makes no difference as the first command literally executes the second one you posted.