geckosio / geckos.io

🦎 Real-time client/server communication over UDP using WebRTC and Node.js http://geckos.io
BSD 3-Clause "New" or "Revised" License
1.34k stars 84 forks source link

Couldn't install package on m1 mac #187

Closed kayden1940 closed 2 years ago

kayden1940 commented 2 years ago

info TOOL Using Unix Makefiles generator. 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/. prebuild ERR! build Error: Failed to build cmake with exit code 1

with both yarn and npm

ghost commented 2 years ago

What nodejs version are you using ?

For now it's not working with nodejs 17 because node-datachannel don't have prebuilt binnaries for it

dustinlacewell commented 2 years ago

I've tried 16 and 17 and neither work.

dadon commented 2 years ago

This worked for me:

brew install cmake
brew install openssl
brew link --force openssl
nikitaosyak commented 2 years ago

I was able to install dependency by updating to latest node and npm, and using install instructions from @dadon's answer.

thanks.

watch-janick commented 2 years ago

I'm on a M1 Max using MacOS 12.5 and I'm getting this error when trying to build it with Node v18.7.0:

Screenshot 2022-08-22 at 16 54 56

Any idea?

yandeu commented 2 years ago

Can you please try v2.2.3? Just release a minute ago

watch-janick commented 2 years ago

I realised I had node-datachannel in my dependencies which wasn't needed and I think that was the actual issue.

It's working now!

yandeu commented 2 years ago

Glad to hear :)