安装epel源

  • 32位

    1
    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  • 64位

    1
    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  • 导入key

    1
    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
  • 查看rpm是否已经安装

    1
    rpm --version

安装nvm

  • 安装

    1
    curl: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
  • 重启shell

安装node

1
nvm install version