Node.js is needed for running the Klipspringer hub. You don’t need Node.js if you only use the FLAC decoding library or the track playing utility.
Test if you have Node.js installed, and in what version, with the following terminal command:
node -v
The current version of Klipspringer was developed with version 18.12, and a newer version shouldn’t hurt. With older versions, some features may not work. Find instructions for how to install a current version of Node.js on your system at the official Node.js site if it isn’t one of the following.
Ubuntu or Raspberry Pi OS
At the time of writing (February 2024), the following command is a simple way to install Node.js on Ubuntu or Raspberry Pi OS (also known as Raspbian), and probably other Debian-based Linux systems, by downloading a binary distributions are available from NodeSource:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && sudo apt-get install -y nodejs
Other options can be found at the official Node.js site if it isn’t one of the following.
Mac
The official Node.js site should link you to a working .pkg file for installation. But there are other options, for instance using Homebrew.
Specifying the node command
By default, Klipspringer’s configure script assumes that the Node.js executable to use is the one run by the node command in the current environment. To override it (which can let you build Klipspringer without Node.js present), set the environment variable NODE to your preferred command. In Bash and most other Unix shells, you can do something like this before running ./configure:
export NODE=/usr/local/lib/node-v19.3.0-linux-x64/bin/node