Open the website

https://nodejs.org/en/
Copy the code

Find the download URL

https://nodejs.org/download/release/v11.10.0/node-v11.10.0-# Linux - x64. Tar. XzCopy the code

The installation

Wget https://nodejs.org/download/release/v11.10.0/node-v11.10.0-linux-x64.tar.xz - no - check - certificate xz - d The node - v11.10.0 - Linux - x64. Tar. Xz tar XVF - node - v11.10.0 - Linux - x64. TarCopy the code

Adding a Soft Connection

Ln -s /opt/node-v11.10.0-linux-x64/bin/node /usr/local/bin/node ln -s /opt/node-v11.10.0-linux-x64/bin/ NPM /usr/local/bin/npmCopy the code

You are advised to configure environment variables

Modify the global environment variable /etc/profile

vi /etc/profile 
Copy the code

Add the following Settings

Export NODE_HOME = / opt/node - v11.10.0 - Linux - x64 export PATH = $NODE_HOME/bin: $PATHCopy the code

Completion of the