Page 1 of 1

Node.js update

Posted: 24 Jan 2023, 20:02
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?

Re: Node.js update

Posted: 24 Jan 2023, 20:23
by TJ27sk
Docker image?
i had to install mariadb in docker for photoprism, also required an older version :(

Re: Node.js update

Posted: 26 Jan 2023, 11:28
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

Re: Node.js update

Posted: 24 Apr 2023, 21:11
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.