Install Node.js 12 LTS on CentOS 7 & Fedora 34/33/32/31/30
source link: https://computingforgeeks.com/how-to-install-nodejs-on-centos-fedora/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Welcome to our guide on how to install Node.js 12 LTS on CentOS 7 & Fedora 34/33/32/31/30 Linux systems. Node.js 12 entered Active LTS state on 2019-10-21, and this is expected to last till 2022-04-30. Node.js is a powerful open source JavaScript runtime built on Chrome’s V8 JavaScript engine for building fast and scalable network applications.
Below are the steps you’ll use to install Node.js 12 LTS on CentOS 7/8 & Fedora 34/33/32/31/30 Linux machine. You need to have root access or be logged in to your server as a user with sudo privileges.
For Ubuntu / Debian, use: How To Install Node.js 12 on Ubuntu / Debian / Linux Mint
Step 1: Update System
Update your CentOS / Fedora system:
### Fedora ###
sudo dnf -y update
### CentOS 7 ###
sudo yum -y update
Step 2: Install Node.js 12 LTS on CentOS 7 & Fedora 34/33/32/31/30
To install Node.js 12.x LTS on CentOS 7 & Fedora 34/33/32/31/30, use NodeSource binary distributions.
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
The command above will install the NodeSource Node.js 12.x repo. Once the repository has been added, install Node.js 12 LTS.
On CentOS 7:
sudo yum clean all && sudo yum makecache fast
sudo yum install -y gcc-c++ make
sudo yum install -y nodejs
On Fedora 34/33/32/31/30:
sudo dnf install -y gcc-c++ make
sudo dnf install -y nodejs
Confirm Node version:
$ node -v
v12.22.5
You have installed Node.js 12 LTS on CentOS 7 & Fedora 34/33/32/31/30 Linux system.
Node.JS Programming Udemy Video Courses
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK