gustavomazzoni / cordova-plugin-tesseract

Cordova Plugin for OCR process using Tesseract
77 stars 34 forks source link

Ionic v3 error when running ionic plugin add cordova-plugin-tesseract #25

Closed iamkaruban closed 7 years ago

iamkaruban commented 7 years ago

I got this error when running

// this is the new command now $ ionic cordova plugin add cordova-plugin-tesseract

or

$ cordova plugin add cordova-plugin-tesseract

Error: Invalid Plugin! cordova-plugin-tesseract needs a valid package.json

Srini-B commented 7 years ago

Same error here too

falkyr commented 7 years ago

+1

NBAMj commented 7 years ago

You have to first download the plugin at your project's root then call ionic cordova plugin add cordova-plugin-tesseract It's actually mentioned in the first step in the installation section 😄

kirin-yuen commented 7 years ago

@NBAMj I donwload the plugin, but when use cordova plugin add cordova-plugin-tesseract it show "Error: Invalid Plugin! cordova-plugin-tesseract needs a valid package.json", and this plugin miss package.json excatly, how can you use it?

moblizeitllc commented 7 years ago

i have the same issue. i did download outside my project and did a cp as mentioned and then went to my project root. but on running ionic cordova plugin add it fails

gianlazz commented 7 years ago

Creating a file in the root of the cordova-plugin-tesseract folder named package.json and pasting in the code from the pull-request above:https://github.com/gustavomazzoni/cordova-plugin-tesseract/pull/28

Then running ionic cordova plugin add cordova-plugin-tesseract in the root of the project folder worked for me.

cli packages: (/Users/gianlazzarini/Documents/Ionic Framwork Dev/ARSpeedRead/node_modules)

    @ionic/cli-plugin-cordova       : 1.6.1
    @ionic/cli-plugin-ionic-angular : 1.4.1
    @ionic/cli-utils                : 1.7.0
    ionic (Ionic CLI)               : 3.7.0

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.0.2
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.5.3

System:

    Node : v6.11.0
    OS   : macOS Sierra
    npm  : 3.10.10 
gustavomazzoni commented 7 years ago

Fixed by #28.