我对nodejs不是很熟悉,但我正在尝试安装hubot并使用hipchat适配器运行它,但是,我得到了下面的错误,package.json。
我遵循了本教程,http://theprogrammingbutler.com/blog/archives/2011/10/28/hipchat-hubot-and-me/和大机器人的官方版本--hipchat,https://github.com/hipchat/hubot-hipchat --我甚至尝试在heroku上设置它,但没有结果。不过,我更愿意在我的ubuntu12.04 ec2实例上设置它,但是如果有人有一条通往heroku的必经之路,那就没问题了:)任何帮助都是非常感谢的!
我还设置了以下环境变量。
HUBOT_HIPCHAT_JID=<Username>
HUBOT_HIPCHAT_NAME=<Room nickname>
HUBOT_HIPCHAT_PASSWORD=<Password you created for hubots user>
HUBOT_HIPCHAT_TOKEN=<Token from Group Admin and API>错误:
Error: Argument error
at new JID (/home/ubuntu/falcbot/node_modules/hubot-hipchat/node_modules/node-xmpp/lib/xmpp/jid.js:30:15)
at new Connector (/home/ubuntu/falcbot/node_modules/hubot-hipchat/src/connector.coffee:64:31, <js>:42:13)
at HipChat.run (/home/ubuntu/falcbot/node_modules/hubot-hipchat/src/hipchat.coffee:48:5, <js>:68:19)
at Robot.run (/home/ubuntu/falcbot/node_modules/hubot/src/robot.coffee:389:5, <js>:351:27)
at Object.<anonymous> (/home/ubuntu/falcbot/node_modules/hubot/bin/hubot:124:8, <js>:141:11)
at Object.<anonymous> (/home/ubuntu/falcbot/node_modules/hubot/bin/hubot:5:1, <js>:144:4)
at Module._compile (module.js:456:26)package.json
{
"name": "hosted-hubot",
"version": "2.6.3",
"author": "GitHub Inc.",
"keywords": [
"github",
"hubot",
"campfire",
"bot"
],
"description": "A simple helpful robot for your Company",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/github/hubot/raw/master/LICENSE"
}
],
"repository": {
"type": "git",
"url": "https://github.com/github/hubot.git"
},
"dependencies": {
"hubot": "2.6.3",
"hubot-scripts": "2.5.3",
"hubot-hipchat": "2.5.1-4",
"optparse": "1.0.4"
},
"engines": {
"node": ">= 0.8.x",
"npm": ">= 1.1.x"
}
}发布于 2013-08-26 20:02:15
显然我忘了导出变量。在使用-a hipchat启动hubot时,我现在没有收到任何错误。
https://stackoverflow.com/questions/18452000
复制相似问题