1.获取nodejs 资源node
# 8.x curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
2.安装npm
yum install -y nodejs
3.验证bash
#node版本 node -v #npm版本 npm -v