Installing Gruntjs Ubuntu 14.04

May 17, 2014 18.8k views
Hi, anyone has a tutorial or link on installing gruntjs on ubuntu 14.04. I tried installation multiple times but didnt work. sudo npm install -g grunt-cli then i go to my project directory cd /path/to/your/project/ npm install grunt grunt-contrib-concat grunt-contrib-uglify grunt-contrib-cssmin grunt-contrib-htmlmin grunt-contrib-watch --save-dev Evertime i run 'grunt' command it says No command 'grunt' found, did you mean: Command 'grun' from package 'grun' (universe)
2 Answers
As of Grunt 0.4.0, the command line tool is actually provided by a separate package:

npm install -g grunt-cli


npm install -g grunt-cli doesnt work for me either. I think it may have something to do with my Ubuntu $PATH variables.

Have another answer? Share your knowledge.