安装
Node.js LTS
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -
Node.js Current
curl -fsSL https://rpm.nodesource.com/setup_current.x | bash -
Node.js v16.x
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
Node.js v15.x
curl -fsSL https://rpm.nodesource.com/setup_15.x | bash -
Node.js v14.x
curl -fsSL https://rpm.nodesource.com/setup_14.x | bash -
Node.js v12.x
curl -fsSL https://rpm.nodesource.com/setup_12.x | bash -
Node.js v10.x
curl -fsSL https://rpm.nodesource.com/setup_10.x | bash -
检查版本
node -v
npm -v