Failed to install npm module command in command

I am trying to install grunt . According to this article, all I need to do is run

npm install -g grunt

After running this command, it looks successful, and all dependencies are installed. When I try to run grunt, I get a command not found.

I'm on Ubuntu 12.04.

+7
source share
1 answer

Rob W has already answered this. But I will post it here to be more clear. Please Rob, if you want to answer, I can delete this.

You must install grunt-cli globally:

sudo npm install -g grunt-cli

+13
source

All Articles