下载安装包
cd /usr/local/bin/
wget https://cdn.npmmirror.com/binaries/node/latest-v16.x/node-v16.13.1-linux-x64.tar.xz
解压压缩文件
tar -xvf node-v16.13.1-linux-x64.tar.xz
yum install gcc gcc-c++
mv node-v16.13.1-linux-x64 Node.js
ln -s /usr/local/bin/Node.js/bin/node /usr/bin/node
ln -s /usr/local/bin/Node.js/bin/npm /usr/bin/npm
ln -s /usr/local/bin/Node.js/bin/npx /usr/bin/npx
标签:node,bin,centos,配置,Node,usr,js,local
From: https://www.cnblogs.com/rise0111/p/17411017.html