我想用opencv制作一个node.js项目,但我安装失败
opencv4node
。有人可以帮助我吗?这是我遇到的错误
我尝试安装chocolatey,我在某人的回答的帖子中看到它,但它不起作用
npm install --save opencv4nodejs --build-from-source
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm error code 1
npm error path D:\Local Disk\stageL3\backend\node_modules\opencv4nodejs
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node ./install/install.js
npm error info install using lib dir: D:/Local Disk/stageL3/backend/node_modules/opencv-build/opencv/build/lib/Release
npm error D:\Local Disk\stageL3\backend\node_modules\opencv4nodejs\install\install.js:37
npm error throw new Error('library dir does not exist: ' + libDir)
npm error ^
npm error
npm error Error: library dir does not exist: D:/Local Disk/stageL3/backend/node_modules/opencv-build/opencv/build/lib/Release
npm error at Object.<anonymous> (D:\Local Disk\stageL3\backend\node_modules\opencv4nodejs\install\install.js:37:9)
npm error at Module._compile (node:internal/modules/cjs/loader:1469:14)
npm error at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
npm error at Module.load (node:internal/modules/cjs/loader:1288:32)
npm error at Module._load (node:internal/modules/cjs/loader:1104:12)
npm error at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
npm error at node:internal/main/run_main_module:28:49
npm error
npm error Node.js v20.17.0