我在Linux上安裝hubot,並且遵循the instructions,沒有收到任何錯誤。部署Hubot時發生巨大的一系列錯誤
但是,當我試圖實際運行我的hubot時,遇到問題。首先,我根據鏈接教程最後的說明嘗試了daemonization hubot。 start hubot
返回了錯誤start: Unknown job: hubot
。所以我備份,並試圖/opt/hubot/bin/hubot --name Ro\ Bot --adapter campfire
,得到了這一系列的錯誤:
/opt/hubot/bin/hubot: line 11: Hubot: command not found
/opt/hubot/bin/hubot: line 12: Fs: command not found
/opt/hubot/bin/hubot: line 13: Path: command not found
/opt/hubot/bin/hubot: line 14: HTTP: command not found
/opt/hubot/bin/hubot: line 15: Creator: command not found
/opt/hubot/bin/hubot: line 16: OptParse: command not found
/opt/hubot/bin/hubot: line 18: Switches: command not found
/opt/hubot/bin/hubot: line 19: [: missing `]'
/opt/hubot/bin/hubot: line 20: [: missing `]'
/opt/hubot/bin/hubot: line 21: [: missing `]'
/opt/hubot/bin/hubot: line 22: [: missing `]'
/opt/hubot/bin/hubot: line 23: [: missing `]'
/opt/hubot/bin/hubot: line 24: [: missing `]'
/opt/hubot/bin/hubot: line 25: [: missing `]'
/opt/hubot/bin/hubot: line 26: [: --version,: binary operator expected
/opt/hubot/bin/hubot: line 27: ]: command not found
/opt/hubot/bin/hubot: line 29: Options: command not found
/opt/hubot/bin/hubot: line 30: adapter:: command not found
/opt/hubot/bin/hubot: line 31: alias:: command not found
/opt/hubot/bin/hubot: line 32: create:: command not found
/opt/hubot/bin/hubot: line 33: enableHttpd:: command not found
/opt/hubot/bin/hubot: line 34: name:: command not found
/opt/hubot/bin/hubot: line 35: path:: command not found
/opt/hubot/bin/hubot: line 37: syntax error near unexpected token `('
/opt/hubot/bin/hubot: line 37: `Parser = new OptParse.OptionParser(Switches)'
試圖從發佈包,而不是克隆的git的成果安裝在前面的過程中不同的錯誤:
[email protected]:/opt# wget https://github.com/downloads/github/hubot/hubot-2.2.0.tar.gz
[email protected]:/opt# npm install
npm ERR! Couldn't read dependencies.
npm ERR! Error: ENOENT, no such file or directory '/opt/package.json'
npm ERR! System Linux 2.6.35.4-rscloud
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /opt
npm ERR! node -v v0.6.9
npm ERR! npm -v 1.1.0-3
npm ERR! path /opt/package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/opt/package.json'
npm ERR! errno {}
npm not ok
我試着npm cache clean
但它沒有幫助。
我不知道該怎麼做,我對Hubot或其運行的任何框架並不熟悉,因此有關如何開始排除故障的任何信息都會有所幫助。
我確實按照「安裝依賴關係」部分,當我在我的shell提示符下鍵入'coffee'時,確實得到'coffee>'作爲提示。我應該從'coffee>'提示符運行我的Hubot命令嗎? – beth