-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot Install opencv js with npm (windows 10/ubuntu 20.04) #677
Comments
I've got the same issue. I'm on Ubuntu and I've built and installed opencv from source according to their instructions. Can't install this package though. Any updates/solutions on this issue? TIA. |
I am not sure where the problem is, but the way this library is looking to find opencv is not working. opencv4 is what is present. looking at this script, setting this env variable (PKG_CONFIG_OPENCV4=1) can force this module to look for opencv4. That got me past the npm installation. |
Using this got me up to here:
|
Describe the bug
When running
sudo npm i opencv
, I get the following error:I have
pkg-config
installed. I also have opencv installed on windows, added to my PATH and my new system variable, and the git is cloned in my project directory. I'm currently running npm 7.6.0 on the Ubuntu 20.04 terminal for windows 10.To Reproduce
Follow the windows instructions here and run
sudo npm i opencv
in the project directory.Expected behavior
Should Install opencv js with no errors.
OS / Libraries
Additional context
If I run
apt list | grep opencv
, the following is returned:The text was updated successfully, but these errors were encountered: