user3379926
user3379926

Reputation: 3945

grunt wont install or doesn't properly

I have tried npm install -g grunt and everything seems to work, but when I do grunt serve it complains that grunt isn't a command on ubuntu 14.04

I am confused as to what I have to do to get this work.

Upvotes: 3

Views: 1202

Answers (1)

badsyntax
badsyntax

Reputation: 9650

First thing, you need to install grunt-cli globally, not grunt.

Second thing, are you sure npm install -g grunt-cli didn't give you any errors?

On Ubuntu, you will have to run it as root:

sudo npm install -g grunt-cli

Upvotes: 4

Related Questions