LoginSignup
6
5

More than 5 years have passed since last update.

npm install -g gruntしてもgruntが使えない時の対処

Posted at

事象

Grunt を使いたいと思って

$ npm install -g grunt

としたが、

zsh: command not found: grunt

となってしまい利用できない。

/usr/local/binにもgruntが作成されない。

解決策

コマンドラインからgruntを使うときは

$ npm install -g grunt-cli

とする。

備考

grunt-cliのcliは「Command Line Interface」の略

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5