【问题标题】:How can I fix the error while installing opencv4nodejs?如何在安装 opencv4nodejs 时修复错误?
【发布时间】:2021-06-03 14:20:05
【问题描述】:

我使用 Visual Studio 代码,并尝试在我的项目中使用 opencv。

npm install opencv4nodejs

Error: 
ERR! Error: failed to execute cmake --version, cmake is required to build opencv, error is: Error: Command failed: cmake --version
'cmake'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α׷�, �Ǵ�
��ġ ������ �ƴմϴ�.
npm ERR! opencv-build@0.1.9 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv-build@0.1.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

我以为是cmake的错误,但是我已经安装了cmake(version:3.20.3) 我该如何解决这个问题?我使用 Windows。

【问题讨论】:

    标签: opencv visual-studio-code cmake opencv4nodejs


    【解决方案1】:

    如果你在终端执行 cmake --version 会发生什么?

    【讨论】:

    • 我在cmd中执行cmake--version,结果是:cmake version 3.20.3。
    • 您是否尝试过从控制台而不是从 Visual Studio 代码运行它? (我猜你使用的是 vs code 命令行,因为问题有 vscode 标签)
    猜你喜欢
    • 2022-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-13
    • 1970-01-01
    • 2020-08-27
    • 1970-01-01
    相关资源
    最近更新 更多