2015/01/28

[node.js][grunt]gruntのエラー

昨日、wysihtmlプラグインを試した記事を書きましたが、ちょっとカスタマイズしたいと思ってgruntを使ってコンパイルしようとしたら、下のようなエラーが発生。

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

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
で、これなんだろーっと思って調べたらQiitaに同じ記事があってどうやらgruntがgruntがインストールされていなかったからのようです。
npm install grunt
を実行したら確かに解決した。

0 コメント:

コメントを投稿