LoginSignup
4
3

More than 5 years have passed since last update.

node.js | node.js ・CoffeeScript・Hubot を Windows7環境にインストールする

Posted at

node.js | node.js ・CoffeeScript・Hubot を Windows7環境にインストールする

概要

node.js・CoffeeScript・Hubot を Windows7環境にインストールする

手順

  • http://nodejs.org/ にアクセスし、 Install のリンクを押下してインストーラを取得
  • インストーラを実行し、ウィザードに沿ってインストール。

確認

$ node -v
v0.10.30
$ npm -v
1.4.21

Coffee Scriptのインストール/試行

$ npm install -g coffee-script
$ coffee -v
CoffeeScript version 1.7.1
$ echo 'console.log("hoge")' > hoge.coffee
$ coffee hoge.coffee
hoge

補足

hubot のインストールと動作確認をしてみたが、下記のような挙動に

# ここは問題なく成功
$ npm install -g hubot

$ hubot -v
2.8.0

# bot の作成。これも成功
$ hubot -c test_hubot

$ cd test_hubot

# hubot の shell adapter 起動
$ ./bin/hubot
Error: EINVAL, invalid argument
  at new Socket (net.js:156:18)
  at process.stdin (node.js:664:19)
  at process.openStdin (node.js:702:14)
# : 以下エラーログ

上記は cygwin で試していたので、 コマンドプロンプトで試してみる

$ cd %hubot%
$ ./bin/hubot
[Wed Aug 13 2014 21:52:54 GMT+0900 (東京 (標準時))] WARNING The HUBOT_AUTH_ADMIN
 environment variable not set
Hubot>
Hubot>
Hubot>
Hubot> hubot ping
Hubot> PONG

成功。ぐぬぬ。

4
3
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
4
3