你好,我正试图在Ubuntu机器上安装Hubot,但是无法让它运行。
我正在使用Hubot的2.1.3版本,下面是hipchat的文档
https://github.com/hipchat/hubot-hipchat
一旦我更新了Hubots根目录上的package.json文件,并将hipchat.coffee上传到./src中并运行命令。上面写着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、readme和hubots自述的指令
谢谢
发布于 2012-04-10 19:13:33
这似乎是hubot-hipchat 1.0.4和更早版本的Hubot的一个问题。我通过在packages.json中设置hubot版本以获取最新的以下内容来解决这个问题:
"hubot": ">=1.0.3"https://stackoverflow.com/questions/9714958
复制相似问题