最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to install Grunt - Stack Overflow

programmeradmin2浏览0评论

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?

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?

Share Improve this question edited Jan 20, 2015 at 7:12 hexacyanide 91.7k31 gold badges165 silver badges162 bronze badges asked Sep 22, 2013 at 4:31 sottishsottish 1252 silver badges8 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 21

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.

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

评论列表(0)

  1. 暂无评论