justadudewhohacks / opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4
MIT License
4.97k stars 827 forks source link

Cannot find module 'D:\Web\opencv\node_modules\opencv4nodejs\build\Release\opencv4nodejs' #863

Open Ajayos opened 1 year ago

Ajayos commented 1 year ago

node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module 'D:\Web\opencv\node_modules\opencv4nodejs\build\Release\opencv4nodejs' Require stack: - D:\Web\opencv\node_modules\opencv4nodejs\lib\cv.js - D:\Web\opencv\node_modules\opencv4nodejs\lib\opencv4nodejs.js - D:\Web\opencv\index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (D:\Web\opencv\node_modules\opencv4nodejs\lib\cv.js:58:8) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'D:\Web\opencv\node_modules\opencv4nodejs\lib\cv.js', 'D:\Web\opencv\node_modules\opencv4nodejs\lib\opencv4nodejs.js', 'D:\Web\opencv\index.js' ] } Node.js v18.14.1

UrielCh commented 1 year ago

Please try the maintained version @u4/opencv4nodejs

jyshaobing commented 1 year ago

use cnpm instead!!!

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