Download nodejs binary installation package
Download address: https://nodejs.org/en/download/
wget https://nodejs.org/dist/v12.18.2/node-v12.18.2-linux-x64.tar.xz
Unzip the installation package
tar xvf node-v12.18.2-linux-x64.tar.xz
Unzip and use
[root@localhost bin]# ./node -v
v12.18.2
[root@localhost bin]#
Set up the soft chain of the main tool
[root@localhost bin]# ln -s /opt/node-v12.18.2-linux-x64/bin/npm /usr/local/bin/
[root@localhost bin]# ln -s /opt/node-v12.18.2-linux-x64/bin/node /usr/local/bin/
[root@localhost bin]# cd
[root@localhost ~]# node -v
v12.18.2
[root@localhost ~]#