- March 7, 2023
- 12:53 am
- No Comments
How to Install Node.js on Linux
Node.js is a popular open-source server-side runtime environment that allows you to build scalable and high-performance web applications. It uses an event-driven, non-blocking I/O model, making it efficient and lightweight. Installing Node.js on Linux is a straightforward process that can be done using package managers or from the official Node.js website. In this guide, we will show you how to install Node.js on some of the most popular Linux distributions.
Debian/Ubuntu-based distros
Step 1: Update your system:
sudo apt update
Step 2: Install the cURL package if not already installed:
sudo apt install curl
Step 3: Download and install the Node.js setup script:
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash –
Note: You can replace 16.x with any other Node.js version you want to install.
Step 4: Install Node.js:
sudo apt install nodejs
Step 5: Verify that Node.js is installed properly:
node -v
Fedora/RPM-based distros
Step 1: Enable the EPEL (Extra Packages for Enterprise Linux) repository:
sudo dnf install epel-release
Step 2: Install the cURL package if not already installed:
sudo dnf install curl
Step 3: Download and install the Node.js setup script:
curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash –
Note: You can replace 16.x with any other Node.js version you want to install.
Step 4: Install Node.js:
sudo dnf install nodejs
Step 5: Verify that Node.js is installed properly:
node -v
Arch-based distros
Step 1: Update your system:
sudo pacman -Syu
Step 2: Install the Node.js package:
sudo pacman -S nodejs
Step 3: Verify that Node.js is installed properly:
node -v
That’s it! You now have Node.js installed on your Linux system.
Â
Please Leave Feedback and Corrections in the Comments
More to Explore
Why MALIBAL?
When it comes to choosing a laptop, you have numerous options from well-known brands like Dell, HP, Lenovo, and Apple. Each of these companies offers a range of products designed to meet the diverse needs of their customers. However, if you’re looking for a brand that stands out in terms
How to Dual Boot Windows and Linux
Dual booting allows you to run two separate operating systems on a single computer, providing the flexibility to switch between different OS environments according to your needs. By setting up a dual-boot system with Windows and Linux, you can enjoy the robust performance and extensive software library of Windows alongside
MALIBAL Aon S1 Vs Apple MacBook Pro 13 (M2)
In the competitive landscape of high-performance, thin & light laptops, the MALIBAL Aon S1 and the Apple MacBook Pro 13 (M2) are noteworthy contenders.
How to Set Up and Use a Basic Firewall on Linux
UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables firewall rules on Linux systems.
How to Set Up a VPN Server on Linux
A VPN (Virtual Private Network) provides a secure, encrypted connection between your devices and the internet.
How to Install and Use a Terminal Multiplexer on Linux
A terminal multiplexer is a powerful command-line utility that enables users to manage multiple terminal sessions.
How to Set Up a Basic Samba Server on Linux
Samba is a popular open-source software suite that provides seamless file and print services to SMB/CIFS clients.
How to Create and Manage Users and Groups on Linux
User and group management is an essential aspect of maintaining a secure and organized Linux system.
How to Install and Configure a LAMP Stack on Linux
A LAMP stack is a popular software bundle consisting of Linux, Apache, MySQL, and PHP, used for hosting and deploying web applications.