Richard Djarbeng · rdjarbeng.com
https://rdjarbeng.com/Installing_NodeJs_16/
How to Remove Node.js 18 and Install Node.js 16 on a Raspberry Pi 4B
Note: For an updated guide on installing Node.js on Raspberry Pi (ARMv7 / Raspberry Pi 4B), see How to install NodeJs on the Raspberry Pi 4.
To install Node.js 16 after uninstalling Node.js 18, you can use the NodeSource repository to get the specific version you want. Here's a step-by-step guide using the terminal:

Remove the existing Node.js version
sudo apt remove nodejs
Install the NodeSource repository for Node.js 16
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
Install Node.js 16
sudo apt install -y nodejs
This will install Node.js 16 on your system. You can verify the installation by checking the version:
node -v
This should output the version of Node.js 16 that you just installed.
Up next: Part 2 of 4 in Raspberry Pi Setup
How to Install Node.js on a Raspberry Pi 4
How to install NodeJs on the Raspberry Pi 4 Tested on Raspberry Pi 4B using the terminal Steps: Assuming you have a Raspberry Pi already setup. If you need help...
Web & Software
1 min read
Tagged In:
Related Posts
« Previous post
Next post »