在Hipchat(Ubuntu)上安装Hubot

在Hipchat(Ubuntu)上安装Hubot,ubuntu,bots,Ubuntu,Bots,你好,我正试图在Ubuntu机器上安装Hubot,但无法运行 我正在使用Hubot的2.1.3版本,并遵循此文档进行hipchat 一旦我在Hubots根目录上更新了package.json文件,并在/src中上传hipchat.coffee,然后运行命令。它说找不到模块“hubot” 我不知道这个错误是从哪里来的,任何帮助都将不胜感激 编辑 它现在给我的错误是无法运行hipchat咖啡脚本本身 TypeError: Object #<Object> has no method '

你好,我正试图在Ubuntu机器上安装Hubot,但无法运行

我正在使用Hubot的2.1.3版本,并遵循此文档进行hipchat

一旦我在Hubots根目录上更新了
package.json
文件,并在
/src
中上传
hipchat.coffee
,然后运行命令。它说
找不到模块“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)
TypeError:对象#没有“robot”方法
反对

我没有修改一行代码。只是执行hipchats自述和hubots自述中提到的指令


谢谢

这似乎是hubot hipchat 1.0.4和更旧版本的hubot的问题。我通过在packages.json中设置hubot版本来获取最新版本,从而解决了这个问题:

"hubot": ">=1.0.3"