LoginSignup
25
21

More than 5 years have passed since last update.

gruntコマンドのエラーメッセージの意味

Posted at

gruntコマンドを実行したときに以下のエラーが出ることがあります。

grunt-cli: The grunt command line interface. (v0.1.9)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started

Gruntfile wasn't found

「Gruntfileが無いかも?」というメッセージなので、Gruntfile.jsがあるか確認します。

grunt hasn't been installed locally to your project

「npmのgruntモジュールがプロジェクトにインストールされてないかも?」というメッセージなので、npm installしてみましょう。

npm install grunt
25
21
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
25
21