1,安装Node.js
1 curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash 2 sudo yum -y install nodejs 3 Optional:sudo yum install gcc-c++ make
2,查看Node.js版本
1 node -v
3,安装NPM
1 curl http://npmjs.org/install.sh | sh
4,安装grunt
1 npm install -g grunt-cli 2 npm install grunt --save-dev 3 grunt -version
参考资料
http://www.infoq.com/cn/articles/nodejs-npm-install-config
http://blog.csdn.net/kuyuyingzi/article/details/9973291