2012-03-15 256 views
0

你好,我正在尝试在Ubuntu机器上安装Hubot,但无法启动它。在Hipchat上安装Hubot(Ubuntu)

我使用Hubot的2.1.3版本,有一次,我更新Hubots根package.json文件并上传在./srchipchat.coffee并运行以下命令本文档的hipchat

https://github.com/hipchat/hubot-hipchat

。它说cannot find module 'hubot'

我不知道这个错误来自哪里,任何帮助将不胜感激。

编辑

它现在给我关于不能够运行hipchat咖啡脚本本身的错误。

TypeError: Object #<Object> has no method 'robot' 
    at Object.<anonymous> (/usr/local/lib/node_modules/hubot/src/hipchat.coffee:7:28) 
    at Object.<anonymous> (/usr/local/lib/node_modules/hubot/src/hipchat.coffee:234:4) 
    at Module._compile (module.js:441:26) 
    at Object..coffee (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:21:21) 
    at Module.load (module.js:348:31) 
    at Function._load (module.js:308:12) 
    at Module.require (module.js:354:17) 
    at require (module.js:370:17) 
    at Object.<anonymous> (/usr/local/lib/node_modules/hubot/bin/hubot:5:11) 
    at Object.<anonymous> (/usr/local/lib/node_modules/hubot/bin/hubot:105:4) 

这是所提到

https://github.com/hipchat/hubot-hipchat/blob/master/src/hipchat.coffee

我还没有改性的一行代码文件。在hipchats刚才提到执行指令自述和hubots自述

感谢

回答

1

这似乎是与hubot-hipchat 1.0.4及以上版本Hubot的问题。我通过设置packages.json中的hubot版本来解决这个问题,以获取最新的:

"hubot": ">=1.0.3"