• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Node.js 20 on Debian 12

  • 00:24 lsb_release -a
  • 00:30 apt update
  • 00:41 apt install curl
  • 00:50 curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
  • 01:14 apt-get install nodejs -y
  • 01:36 node -v
7839

To Install Node.js 20 On Debian 12

Introduction

Node (or more formally Node.js) is an open-source, cross-platform runtime environment that allows developers to create various server-side tools and applications in JavaScript.

Procedure Steps

Step 1: Check the Ubuntu version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Step 2: Update the repository by using the below command

root@linuxhelp:~# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                  
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease   
Hit:4 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease
Hit:5 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
106 packages can be upgraded. Run 'apt list --upgradable' to see them.

Step 3: Install the curl package by using the below command

root@linuxhelp:~# apt install curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.88.1-10+deb12u5).
0 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.

Step 4: Download the node packages by using the below command

root@linuxhelp:~# curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
2024-05-14 03:52:45 - Installing pre-requisites
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease
Hit:5 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311).
curl is already the newest version (7.88.1-10+deb12u5).
gnupg is already the newest version (2.2.40-1.1).
gnupg set to manually installed.
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 106 not upgraded.
Need to get 25.2 kB of archives.
After this operation, 35.8 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 apt-transport-https all 2.6.1 [25.2 kB]
Fetched 25.2 kB in 0s (205 kB/s)               
Selecting previously unselected package apt-transport-https.
(Reading database ... 170625 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.6.1_all.deb ...
Unpacking apt-transport-https (2.6.1) ...
Setting up apt-transport-https (2.6.1) ...
Hit:1 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease
Get:2 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]        
Hit:3 http://deb.debian.org/debian bookworm InRelease                          
Hit:4 http://security.debian.org/debian-security bookworm-security InRelease   
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Get:6 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [7,318 B]
Hit:7 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Fetched 19.5 kB in 1s (24.1 kB/s)
Reading package lists... Done
2024-05-14 03:52:50 - Repository configured successfully. To install Node.js, run: apt-get install nodejs -y

Step 5: Install the node packages by using the below command

root@linuxhelp:~# apt-get install nodejs -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 106 not upgraded.
Need to get 31.6 MB of archives.
After this operation, 196 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_20.x nodistro/main amd64 nodejs amd64 20.13.1-1nodesource1 [31.6 MB]
Fetched 31.6 MB in 3s (10.0 MB/s)  
Selecting previously unselected package nodejs.
(Reading database ... 170629 files and directories currently installed.)
Preparing to unpack .../nodejs_20.13.1-1nodesource1_amd64.deb ...
Unpacking nodejs (20.13.1-1nodesource1) ...
Setting up nodejs (20.13.1-1nodesource1) ...
Processing triggers for man-db (2.11.2-2) ...

Step 6: Find the version of a node by using the below command

root@linuxhelp:~# node -v
v20.13.1

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Node.js 20 on Debian 12. Your feedback is much welcome.

Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What are the functionalities of NPM in Node.js?

A

NPM (Node Package Manager) provides two functionalities:
-Online repository for Node.js packages.
-Command line utility for installing packages, version management, and dependency management of Node.js packages.

Q

What is the difference between Node.js and Ajax?

A

Node.js and Ajax (Asynchronous JavaScript and XML) are the advanced implementations of JavaScript. They all serve completely different purposes.
Ajax is primarily designed for dynamically updating a particular section of a page’s content, without having to update the entire page.
Node.js is used for developing client-server applications.

Q

Node.js and Ajax (Asynchronous JavaScript and XML) are the advanced implementations of JavaScript. They all serve completely different purposes.

A

Ajax is primarily designed for dynamically updating a particular section of a page’s content, without having to update the entire page.
Node.js is used for developing client-server applications.

Q

Where can you use Node.js?

A

Node.js is used to build scalable programs especially web applications which are computationally simple but are frequently accessed.

Q

What is Node.js?

A

Node.js is a server-side scripting based on Google’s V8 JavaScript engine.

Related Tutorials in How to install Node.js 20 on Debian 12

Related Tutorials in How to install Node.js 20 on Debian 12

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to install qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017
How to Install Laravel in Debian
How to Install Laravel in Debian
Dec 7, 2016

Related Forums in How to install Node.js 20 on Debian 12

Related Forums in How to install Node.js 20 on Debian 12

MariaDB
ryan class=
E: Unable to locate package mariadb-server
Sep 18, 2017
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
Node.js
aiden class=
How To solve the issue during the installation of nodejs version 10 and 11 on ubuntu 18.04
Nov 15, 2018
Node.js
lucas class=
Npm ERR! Cannot read property 'match' of undefined
Sep 3, 2019
vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
Ubuntu
Robattalion class=
Ubuntu 20.04 Installation Stuck
Sep 19, 2020
CentOS
jackson class=
2:nodejs-10.15.3-1nodesource.x86_64: [Errno 256] No more mirrors to try. On CentOS 7.6
May 28, 2019
debian
anandaamatya class=
RedNotebook on Debian buster
Jun 30, 2020

Related News in How to install Node.js 20 on Debian 12

Related News in How to install Node.js 20 on Debian 12

Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Feb 28, 2017
Mass update of Jessie - A better alternative to new version?
Mass update of Jessie - A better alternative to new version?
May 8, 2017
Debian 9.2 ‘Stretch’ OS is here, download distro now
Debian 9.2 ‘Stretch’ OS is here, download distro now
Oct 9, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.