bin/hubotで「iconv.nodeが見つからない」とErrorが出た時の対処法
忘れないようにメモ。
ターミナルで bin/hubot した時に以下のエラーが出た時の対処法。
Error: Cannot find module '../build/Debug/iconv.node'
hubotフォルダ配下の node_modules/iconv に移動し、以下のコマンドを実行。
node-gyp configure node-gyp build
もし node-gyp で command not found が出たら、以下のやり方で node-gyp をインストールする。
npm install -g node-gyp