node-raylib icon indicating copy to clipboard operation
node-raylib copied to clipboard

build fails on mac (CMake executable is not found.)

Open GriffinSego opened this issue 4 years ago • 0 comments

Attempting to run npm install raylib on a mac yields an error

info TOOL Using Unix Makefiles generator.
info REP Build has been failed, trying to do a full rebuild.
ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `cmake-js compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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!     /Users/{name}/.npm/_logs/2021-09-01T03_13_01_094Z-debug.log

the full debug file complains about the CMake file not existing. Am I doing something wrong or is this a legitimate error? Thanks!

GriffinSego avatar Sep 01 '21 03:09 GriffinSego