Build and run server (Windows/OS X/Linux)
December 19, 2024 ยท View on GitHub
Prerequisites:
I only use even-numbered node.js releases, but odd-numbered releases may work!
If you get errors with node.js 20.x, try node.js 18.x.
Build and run on Windows
Additional prerequisites:
- Visual Studio
-
Launch the appropriate native tools command prompt - search for
x64 native toolsin the Start menu -
Change to the
serverfolder in the working copy -
Run
npm install. A build error mentioningsys/ioctl.his expected - this is benign, and can be ignored -
Run
run OPTIONSto start the server, whereOPTIONSare the command line options for it - see the server docs
Build and run on macOS/Linux
Additional macOS prerequisites:
- Xcode
Additional Linux Ubuntu package prerequisites: (you're on your own for other distros - reports welcome)
apt-get install libusb-dev(libusb)apt-get install libudev-dev
Steps:
-
Go to terminal
-
Change to the
serverfolder in the working copy -
Run
npm install -
Run
npm start -- OPTIONSto start the server, whereOPTIONSare the command line options for it - see the server docs