npm ERR! code 1 npm ERR! path C:\Users\Administrator\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: C:/Users/Administrator/node_modules/opencv-build/opencv/build/lib/Release npm ERR! C:\Users\Administrator\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: C:/Users/Administrator/node_modules/opencv-build/opencv/build/lib/Release npm ERR! at Object.<anonymous> (C:\Users\Administrator\node_modules\opencv4nodejs\install\install.js:37:9) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1254:14) npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:1117:32) npm ERR! at Module._load (node:internal/modules/cjs/loader:958:12) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:23:47 npm ERR! npm ERR! Node.js v18.16.0 npm ERR! A complete log of this run can be found in:
时间: 2023-06-24 10:05:53 浏览: 226
npm ERR! code EPERM npm ERR! syscall open npm ERR! path C:\Program Files\nodejs\node_cache\_cacache\
5星 · 资源好评率100%
这是一个 npm 安装错误的报错信息,看起来是安装 opencv4nodejs 时出现的问题。报错信息中提示 "library dir does not exist",可能是由于缺少依赖库或者没有正确设置环境变量导致的。你可以尝试检查一下是否有遗漏的依赖,或者重新设置环境变量后再次尝试安装。如果问题仍然存在,你可以尝试搜索一下相关的解决方案或者在相关社区提问寻求帮助。
阅读全文