@@ -7,28 +7,39 @@ tested. Therefore, using an older version of Node.js may work, but it is not
77recommended.
88
99## Node.js on Windows  
10+ 
1011If you are on Windows, just [ download] ( https://nodejs.org/en/download/ )  the MSI
1112installer package and install it.
1213
1314## Node.js on Linux  
15+ 
1416If your Linux distribution does not provide a recent Node.js version (at least
15- version 18  is recommended), you can add an (unofficial) Node.js package
17+ version 20  is recommended), you can add an (unofficial) Node.js package
1618repository to your system.
1719
1820### Debian-based  
1921
20- On Debian-based systems create the file ** /etc/apt/sources.list.d/nodejs.list** 
21- and give it the following contents:
22+ On Debian-based systems you need curl and GnuPG for download and preparation of
23+ the Node.js installation. Both can be installed by typing
24+ 
25+     apt-get install curl gnupg2 
26+ 
27+ into a root terminal. Next, download and install the package signing key for the
28+ Node.js package repository:
29+ 
30+     curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg 
31+ 
32+ Then create the file ** /etc/apt/sources.list.d/nodejs.list**  and give it the
33+ following contents:
2234
23-     # Node.js 18.x for Debian 11 (codename bullseye) 
24-     deb https://deb.nodesource.com/node_18.x bullseye main 
25-     deb-src https://deb.nodesource.com/node_18.x bullseye main 
35+     # Node.js 20.x for Debian 
36+     deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main 
2637
2738After that do
2839
2940    apt-get update && apt-get upgrade 
3041
31- to update the APT package lists. To install Node.js 18 , type
42+ to update the APT package lists. To install Node.js 20 , type
3243
3344    apt-get install nodejs 
3445
@@ -38,7 +49,7 @@ That's it.
3849
3950On a RedHat-based system (e.g. CentOS) make sure curl is installed and then type
4051
41-     curl -sL https://rpm.nodesource.com/setup_18 .x | bash - 
52+     curl -sL https://rpm.nodesource.com/setup_20 .x | bash - 
4253
4354to download and execute a bash script that will take care of the installation.
4455You might want to check the script code before doing that, though.
0 commit comments