Reputation: 125
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
Reputation: 161
npm install -g grunt-cli => This will put the grunt command in your system path
Upvotes: 3
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