LoginSignup
2

More than 5 years have passed since last update.

WindowsでHubotのCronJobを動かす方法

Last updated at Posted at 2014-11-03

概説

WindowsでHubotのCronJobを動かそうと思ったら、npmのインストールにはまったのでその紹介。

はまりポイント1

Pythonを入れないと。npmインストール時に以下のエラーが発生する。

npm
$ npm install cron --save

$ npm install time --save
・
省略
・
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)

ということなので、Pythonの公式サイトから、ダウンロードしインストールします。

今回は、「Python 2.7.8」をインストールしました。

はまりポイント2

Visual Studioを入れないと。npmインストール時に以下のエラーが発生する。

npm
$ npm install time --save
・
省略
・
このソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、"/m" スイッチを追加してください。
MSBUILD : error MSB3428: Visual C++ コンポーネント "VCBuild.exe" を読み込めませんでした。この問題を解決する
には、次のいずれかを行ってください。 1) .NET Framework 2.0 SDK インストールする。 2) Microsoft Visual Studio 2005 をインストールする。 3) その他の場所にインストールされている場合、コンポーネントの場所をシステム パスに追加する。 [c:\Users\hoge\hoge-hubot\node_modules\time\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1

ということなので、Visula Studioのダウンロードセンターから、ダウンロードしインストールします。

今回は、「Microsoft Visual Studio Express 2012 for Windows Desktop」をインストールしました。

後は、この辺りを見るとすんなりいく感じ。

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
2