justadudewhohacks / justadudewhohacks/opencv4nodejs

Unable to install: `library dir does not exist`

Open
#837 9 comments 10 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

# Description
I am trying to use opencv4nodejs to capture my webcam, but I am not able to install it.
I tried a lot of other things and other ways to install opencv4nodejs, but none were successful, so I will just post the result of an auto build.

# Error Message
`Error: library dir does not exist: D:/projects/webcam/node_modules/opencv-build/opencv/build/lib/Release`

# Auto Build - Full Error Log
npm install --save opencv4nodejs
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\\projects\\webcam\\node_modules',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\projects\webcam\node_modules\opencv-build'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\\projects\\webcam\\node_modules\\opencv-build'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\projects\webcam\node_modules\opencv4nodejs
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./install/install.js
npm ERR! info install using lib dir: D:/projects/webcam/node_modules/opencv-build/opencv/build/lib/Release
npm ERR! D:\projects\webcam\node_modules\opencv4nodejs\install\install.js:37
npm ERR! throw new Error('library dir does not exist: ' + libDir)
npm ERR! ^
npm ERR!
npm ERR! Error: library dir does not exist: D:/projects/webcam/node_modules/opencv-build/opencv/build/lib/Release
npm ERR! at Object. (D:\projects\webcam\node_modules\opencv4nodejs\install\install.js:37:9)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1097:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:975:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:17:47
npm ERR!
npm ERR! Node.js v17.3.0

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\\AppData\Local\npm-cache\_logs\2022-01-03T14_55_06_355Z-debug-0.log

*OpenCV version* : 5.6.0

*With OpenCV-contrib?* (extra modules): no

*OS*: Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.