justadudewhohacks / opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'C:\Users\pierr\Desktop\onnxjs\node_modules\opencv4nodejs\build\Release\opencv4nodejs'

pierrejmn opened this issue · comments

Hi,

I seemed to have successfully installed opencv4nodejs after having set environment variables. Yet when I run a script that includes the command const cv = require('opencv4nodejs'); I get the following error :

image

When I check the node_modules/opencv4nodejs folder, I can see that the build folder is missing :
image

Do anyone has a solution for this ?
Thank you for your time !

OpenCV version : 5.6.0
OS: Windows 10

commented

This repository is not maintained anymore, please use @u4/opencv4nodejs for a more active fork

use cnpm while solve this issuse!

npm install -g cnpm --registry = https://registry.npmmirror.com
cnpm install --registry=https://registry.npmmirror.com