1.现在node.tar.gz
2.解压到指定目录(如果是普通用户要给目录赋权限 chmod -R 760 /opt)
export NODE_HOME=/path/node-version export PATH=$PATH:$NODE_HOME/bin
3.验证 node -v 如果出现 node版本怎表示成功