sottish
sottish

Reputation: 125

How to install Grunt

I used Homebrew to install Node.js, then used npm install to install Grunt and its dependencies, but after the installation completed, I was not able to run Grunt:

zsh: correct 'grunt' to 'grn' ÆnyaeÅ? n
zsh: command not found: grunt

What is the proper method of installing Grunt so I do not get this error?

Upvotes: 7

Views: 3482

Answers (2)

Deepak
Deepak

Reputation: 161

npm install -g grunt-cli   => This will put the grunt command in your system path

Upvotes: 3

hexacyanide
hexacyanide

Reputation: 91799

To use Grunt on the command line, you have to install the command-line interface:

npm install -g grunt-cli

The -g flag is for installing the module globally, which will also create a PATH variable for Grunt.

Upvotes: 21

Related Questions