I had problems using grunt with a project so i figured out the steps and outlined them here.
- Get nvm(node version manager)
-
curl https://raw.github.com/creationix/nvm/master/install.sh > install.sh
-
- Make the install script executable and run it
-
chmod +x install.sh
./install.sh
-
- Use nvmto install the latest node.js (0.10.5 at this time)
-
nvm install v0.10.5
-
- Use npm (node package manager) to install grunt-cli
-
sudo npm uninstall -g grunt
-
- Add grunt as a dependency to the project
- cd into your project directory
-
npm install grunt@0.4.1 --save-dev
That’s it! All done!

