在centos6.5系统下安装nodejs+npm+grunt
安装centos的yum源
64位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
32位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
导入 key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
添加remi源
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
安装nodejs
setup_5.x表示nodejs5 setup_6.x表示nodejs6
curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
yum -y install nodejs
安装grunt
npm install -g grunt-cli