Node.js update

Discussion of applications not mentioned above.
Locked
User avatar
onpotis
Posts: 4
Joined: 24 Jan 2023, 11:22

Node.js update

Post by onpotis »

Not sure where else to post this but how do I update node.js? I have a T2-210 running 4.2.41-
I'm trying to host a Discord bot but it needs node.js 16.20 or higher, the version the on Applications is for node.js is 10.4.2, how may I update node.js?
User avatar
TJ27sk
Posts: 10
Joined: 22 Nov 2022, 18:06
Russia

Re: Node.js update

Post by TJ27sk »

Docker image?
i had to install mariadb in docker for photoprism, also required an older version :(
User avatar
onpotis
Posts: 4
Joined: 24 Jan 2023, 11:22

Re: Node.js update

Post by onpotis »

I installed and ran the node docker image, but when I do `node -v` in an SSH connection it still replies with version 10
User avatar
veligo3465
Posts: 1
Joined: 24 Apr 2023, 20:41

Re: Node.js update

Post by veligo3465 »

There are different methods to update Node.js depending on the operating system.

Windows:
Go to the Node.js website and download the latest version.
Install the new version and it will automatically replace the old one.
Mac:
First, install a package manager such as Homebrew or MacPorts if you haven't already.
Open the terminal app and run the following command:
brew update
brew upgrade node
Linux:
Open the terminal app and run the following command:
sudo apt-get update
sudo apt-get upgrade nodejs
Note: There may be slight differences in the commands depending on the Linux distribution.

After updating, you can confirm the version by running the command "node --version" in the terminal.
Locked