【发布时间】:2021-10-15 06:52:47
【问题描述】:
我正在尝试按照他们的文档安装 nodegui,但即使我已经安装了它(以及 Visual Studio 2019),它似乎也找不到 Cmake。这是错误:
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
[
'C:\\Program Files\\nodejs\\node.exe',
'C:\\Users\\giova\\Coding projects\\Node_Gui\\Tutorial_1\\nodegui-starter\\node_modules\\cmake-js\\bin\\cmake-js',
'compile'
]
ERR! OMG CMake is not installed. Install CMake.
ERR! OMG CMake is not installed. Install CMake.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.36.0 build:addon: `cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.36.0 build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\giova\AppData\Roaming\npm-cache\_logs\2021-10-15T06_47_38_675Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.36.0 postinstall: `cross-env npm run setupqt && (node ./scripts/skip.js || npm run build:addon)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.36.0 postinstall 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:
npm ERR! C:\Users\giova\AppData\Roaming\npm-cache\_logs\2021-10-15T06_47_39_666Z-debug.log
【问题讨论】:
-
当您在终端上输入
cmake --version时,它会显示cmake 版本吗? -
是:cmake 版本 3.20.6
-
我也试过3.21,但没有任何变化