gpt4 book ai didi

ubuntu - 在 Hipchat (Ubuntu) 上安装 Hubot

转载 作者:行者123 更新时间:2023-12-04 19:22:57 25 4
gpt4 key购买 nike

您好,我正在尝试在 Ubuntu 机器上安装 Hubot,但无法运行。

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

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

一旦我更新 package.json Hubots root 上的文件并上传 hipchat.coffee./src并运行命令。它说cannot find module 'hubot'
我不知道这个错误来自哪里,任何帮助将不胜感激。

编辑

它现在给我关于无法运行 hipchat CoffeeScript 本身的错误。

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 自述文件中提到的指令

谢谢

最佳答案

hubot-hipchat 1.0.4 和旧版本的 Hubot 似乎是一个问题。我通过在 packages.json 中设置 hubot 版本以获取最新版本解决了这个问题:

"hubot": ">=1.0.3"

关于ubuntu - 在 Hipchat (Ubuntu) 上安装 Hubot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9714958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com