0

我使用 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(版本:3.20.3)我该如何解决这个问题?我使用 Windows。

4

1 回答 1

0

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

于 2021-06-03T14:25:34.757 回答