Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Node.js 官网

添加 Node.js 软件包

curl -sL | bash -

安装 Node.js

yum install -y nodejs

查看 Node.js 版本

node -v

查看 NPM 版本

npm is the package manager for JavaScript and the world’s largest software registry. Discover packages of reusable code — and assemble them in powerful new ways.
NPM 官网
npm -v

更新 NPM

npm i -g npm --registry=