Opencv4Nodjejs issue

Hi Everyone,
When i am executing the below code to validate the images using opencv4, i am getting the exception as, org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: ‘opencv4nodejs’ module is required to use OpenCV features. Please install it first (‘npm i -g opencv4nodejs’) and restart Appium.
When i executed the cmd “npm i -g opencv4nodejs” i am getting the below error in the cmd prompt

info install using lib dir: C:/Users/mallikarjunago/AppData/Roaming/npm/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/lib/Release
npm ERR! C:\Users\mallikarjunago\AppData\Roaming\npm\node_modules\opencv4nodejs\install\install.js:37
npm ERR! throw new Error('library dir does not exist: ’ + libDir) (Please refer the attached screenshots for more information).

When I am trying to install the opencv4 through Choco I am getting the exception as Opencv4 already installed (Please find the attached screenshot for reference).

Please find the code below:-

FeaturesMatchingResult result = null;
File initialImage = new File(“src/test/java/UploadedAppOrFile/screenshot3116598282210240106.png”);
try {
} catch (Exception e) {
try {
System.out.println(" validating the image result");
result = driver.matchImagesFeatures(initialImage, AdelaideLoginPage.takeScreenShot());
result = driver.matchImagesFeatures(initialImage, AdelaideLoginPage.takeScreenShot(), new FeaturesMatchingOptions()
System.out.println("1 " + result.getVisualization().length);
System.out.println("2 " + result.getCount());
System.out.println("3 " + result.getPoints1().isEmpty());
System.out.println("4 " + result.getRect1());
System.out.println("5 " + result.getPoints2().isEmpty());
System.out.println("5 " + result.getRect2());
} catch (Exception e) {

I used to have problems with it as well. eventually I managed to install it using homebrew and opencv4nodejs GitHub documentation:

Luckily for you, you can just upgrade to appium 2 which has the ability to install plugins like opencv4nodejs with one command which appium handle.
check this for docs:

and this is for appium 2 installation: