Comment
Author: Admin | 2025-04-28
Node.js is a server-side JavaScript language based on the V8 JavaScript engine from Google. Node.js allows you to write server-side JavaScript applications. It provides an I/O model based on events and non-blocking operations that enables you to write efficient applications. Node.js is known for its large modular ecosystem through npm. This guide will take you through the steps of installing Node.js 14 on Ubuntu 22.04|20.04|18.04.Node.js 14 was released on 2020-04-21 and is expected to enter active LTS state on 2020-10-20. The maintenance window will start on 2021-10-19 and is expected to reach End-of-life on 2023-04-30.For CentOS / RHEL installation: Install Node.js 14 on CentOS & RHELWe will use the Node.js Binary Distributions installer script to setup Node.js 14 on Ubuntu 22.04|20.04|18.04 Linux system.Step 1: Update APT indexRun the apt update command on your Ubuntu Linux to update package repository contents database.sudo apt updateStep 2: Install Node.js 14 from packageAfter system update, install Node.js 14 on Ubuntu 22.04|20.04|18.04 by first installing the required repository.curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -The script above will create apt sources list file for the NodeSource Node.js 14.x repo:# Ubuntu 20.04 example$ cat /etc/apt/sources.list.d/nodesource.listdeb https://deb.nodesource.com/node_14.x focal maindeb-src https://deb.nodesource.com/node_14.x focal mainOnce the repository is added, you can begin the installation of Node.js 14 on Ubuntu Linux:sudo apt -y install nodejsVerify the version of Node.js installed.$ node -vv14.21.3Step 3: Install Node.js Dev ToolsIf you need Node Development tools, install them with the command:sudo apt -y install gcc g++ makeTo install the Yarn package manager, run:curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg |
Add Comment