Node.js upgrade to v24
node -v v24.13.1
su - xormon cd ~/xormon-ng ./xormon.sh stop # This is a must once XorMon is down! cd ~/xormon-ng/server-nest npx pm2 kill
head -1 /etc/os-releaseChoose the appropriate procedure for your system.
apt remove nodejs
dnf remove nodejs
zypper remove nodejs20
rm /usr/local/bin/node /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack /usr/local/share/man/man1/node.1 rm -rf /usr/local/share/doc/node/ /usr/local/lib/node_modules/ /usr/local/include/node/
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - apt install nodejs node -v
dnf module reset nodejs dnf module enable nodejs:24 dnf install nodejs node -v
curl -fsSL https://rpm.nodesource.com/setup_24.x | bash - dnf install nodejs node -v
zypper addrepo https://download.opensuse.org/repositories/devel:languages:nodejs/15.6/devel:languages:nodejs.repo zypper refresh zypper install nodejs24 node -v
cd /tmp wget https://nodejs.org/dist/latest-v24.x/node-v24.14.0-linux-x64.tar.xzCopy file node-v24.14.0-linux-x64.tar.xz to XorMon machine into /tmp/ dir and under root user:
# extract archive to /usr/local cd /usr/local # do not foget about "--strip-components=1" parameter in below tar! tar xf /tmp/node-v24.14.0-linux-x64.tar.xz --strip-components=1 # check node version, it should show v24 /usr/local/bin/node -v # remove archive rm /tmp/node-v24.14.0-linux-x64.tar.xz # make sure xormon users sees v24 as well su - xormon node -vMake sure that /usr/local/bin is in the PATH variable for user xormon.
su - xormon echo $PATH /usr/local/bin:/usr/bin:/binAdd /usr/local/bin to PATH if necessary
su - xormon vi ~/.profileAdd the following line at the end of the file
export PATH=/usr/local/bin:$PATHLog out and log back in as xormon and check that the shell finds the node command without specifying the full path.
su - xormon node -v
/usr/sbin/setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node)) # verify it /usr/sbin/getcap $(readlink -f $(which node)) # Output should be: /usr/bin/node cap_net_bind_service=epSome Linux distributions, such as SUSE, set command alternatives for multiple verions.
update-alternatives --get-selections | grep node
node-default auto /usr/bin/node24
/usr/sbin/setcap 'cap_net_bind_service=+ep' /usr/bin/node /usr/sbin/setcap 'cap_net_bind_service=+ep' /usr/bin/node24
su - xormon
cd ~/xormon-ng
./xormon.sh start
In case XorMon does not start and hangs in 'Exiting verify.ts ....' server reboot is necessary, but it should not normally happen.