Closed iamkaruban closed 7 years ago
Same error here too
+1
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 😄
@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?
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
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
Fixed by #28.
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