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?
Node.js update
Re: Node.js update
Docker image?
i had to install mariadb in docker for photoprism, also required an older version
i had to install mariadb in docker for photoprism, also required an older version
Re: Node.js update
I installed and ran the node docker image, but when I do `node -v` in an SSH connection it still replies with version 10
- veligo3465
- Posts: 1
- Joined: 24 Apr 2023, 20:41
Re: Node.js update
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.
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.