1. Check whether the system is 32-bit or 64-bit
uname -r
2. Download the Node package from the Node official website and upload Linux
nodejs.cn/download/
Download Linux32-bit directly and upload it to the /usr directory via FTP
3. Go to the directory where the file is stored, decompress the file, and rename the file
CD /usr// Go to the usr directory tar -xvf node-v10.15.3-linux-x64.tar.xz // Decompress the Node packageCopy the code
Node-v10.15.3-linux-x64: node-v10.15.3-linux-x64: node-v10.15.3-linux-x64: node-v10.15.3-linux-x64
Mv node-v10.15.3- Linux -x64 nodejs Is renamed to nodejs
4. Establish a soft connection and change it into a global environment variable.
ln -s /usr/nodejs/bin/npm /usr/local/bin/
ln -s /usr/nodejs/bin/node /usr/local/bin/
Copy the code