MobisysGmbH / cordova-plugin-mlkit-barcode-scanner

A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
MIT License
19 stars 22 forks source link

'cordova-plugin-mlkit-barcode-scanner' is not in the npm registry. #8

Open BartBakker82 opened 3 years ago

BartBakker82 commented 3 years ago

I'm unable to re-install this plugin in my project. All of a sudden my CI builds started to fail because of this plugin. I tried re-installing the plugin but the command cordova plugin add cordova-plugin-mlkit-barcode-scanner failed with the following error:

{ "error": { "code": "E404", "summary": "'cordova-plugin-mlkit-barcode-scanner' is not in the npm registry.\nYou should bug the author to publish it\n(or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url.", "detail": "\n 'cordova-plugin-mlkit-barcode-scanner@latest' is not in the npm registry.\nYou should bug the author to publish it (or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url." } }

flobiwankenobi commented 2 years ago

Sorry for the late answer. This plugin is currently not available as module via npm.

There are two options:

  1. Until 2.1.2 you can just add this repository to your project like this: cordova plugin add https://github.com/MobisysGmbH/cordova-plugin-mlkit-barcode-scanner.git#2.1.2
  2. Since 2.1.3 the project is based on typescript and has to be build, before you can use it.