Install Node.js v.16 on RHEL

[root@VMTDTSRV1 ~]# dnf module install nodejs:16
Last metadata expiration check: 2:25:48 ago on Wed 31 May 2023 08:02:26 AM UTC.
Dependencies resolved.
==============================================================================================================================================================
 Package                  Architecture   Version                                                      Repository                                         Size
==============================================================================================================================================================
Installing group/module packages:
 nodejs                   x86_64         1:16.17.1-1.module+el8.6.0+16848+a483195a                    rhel-8-for-x86_64-appstream-eus-rhui-rpms          12 M
 npm                      x86_64         1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a           rhel-8-for-x86_64-appstream-eus-rhui-rpms         1.9 M
Installing weak dependencies:
 nodejs-docs              noarch         1:16.17.1-1.module+el8.6.0+16848+a483195a                    rhel-8-for-x86_64-appstream-eus-rhui-rpms         9.3 M
 nodejs-full-i18n         x86_64         1:16.17.1-1.module+el8.6.0+16848+a483195a                    rhel-8-for-x86_64-appstream-eus-rhui-rpms         8.0 M
Installing module profiles:
 nodejs/common                                                                                                                                               
Enabling module streams:
 nodejs                                  16                                                                                                                  

Transaction Summary
==============================================================================================================================================================
Install  4 Packages

Total download size: 31 M
Installed size: 153 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): npm-8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a.x86_64.rpm                                                        4.4 MB/s | 1.9 MB     00:00    
(2/4): nodejs-full-i18n-16.17.1-1.module+el8.6.0+16848+a483195a.x86_64.rpm                                                     13 MB/s | 8.0 MB     00:00    
(3/4): nodejs-16.17.1-1.module+el8.6.0+16848+a483195a.x86_64.rpm                                                               16 MB/s |  12 MB     00:00    
(4/4): nodejs-docs-16.17.1-1.module+el8.6.0+16848+a483195a.noarch.rpm                                                          13 MB/s | 9.3 MB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                          28 MB/s |  31 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: npm-1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a.x86_64                                                                        1/1 
  Preparing        :                                                                                                                                      1/1 
  Installing       : nodejs-docs-1:16.17.1-1.module+el8.6.0+16848+a483195a.noarch                                                                         1/4 
  Installing       : npm-1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a.x86_64                                                                        2/4 
  Installing       : nodejs-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                                                                              3/4 
  Installing       : nodejs-full-i18n-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                                                                    4/4 
  Running scriptlet: nodejs-full-i18n-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                                                                    4/4 
  Verifying        : nodejs-full-i18n-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                                                                    1/4 
  Verifying        : nodejs-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                                                                              2/4 
  Verifying        : npm-1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a.x86_64                                                                        3/4 
  Verifying        : nodejs-docs-1:16.17.1-1.module+el8.6.0+16848+a483195a.noarch                                                                         4/4 
Installed products updated.

Installed:
  nodejs-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64                         nodejs-docs-1:16.17.1-1.module+el8.6.0+16848+a483195a.noarch               
  nodejs-full-i18n-1:16.17.1-1.module+el8.6.0+16848+a483195a.x86_64               npm-1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a.x86_64              

Complete!
[root@VMTDTSRV1 ~]# node -v
v16.17.1
[root@VMTDTSRV1 ~]#