@mykola-mokhnach: I tried uninstalling Node and installing the latest version, also installed appium 1.21.0.
After this i tried running your command and opencv4nodejs installed successfully without any errors but still when i am trying to run my Appium tests i get below mentioned error.
"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. "
So i tried to link the opencv4nodejs module to appium by going to the appium folder path under node_modules and running below mentioned command:
npm ls -g opencv4nodejs --depth=0 && npm link opencv4nodejs
but still getting same error while running the tests.
i have installed appium and opencv4nodejs globally using -g option. Could this be a module linking issue?
Check the documentation on Node modules resolution. Perhaps, it is just necessary to either link opencv4nodejs to a proper folder or add its root folder to NODE_PATH environment variable