CentOS安装Node

  1. 更新sudo yum update
  2. 将NodeSource添加到yum,当前最新版本为14
    • curl –sL https://rpm.nodesource.com/setup_14.x | sudo bash -
  3. sudo yum install –y nodejs
  4. node -version

你可能感兴趣的:(CentOS安装Node)