0

在干净的最新 Ubuntu 桌面上安装了 Hubot。第一次尝试运行 Hubot 的结果是:

cd /opt/hubot && ./bin/hubot
connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20
connect deprecated limit: Restrict request size at location of read node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15
[Wed Dec 24 2014 15:37:46 GMT-0500 (EST)] ERROR TypeError: Bad argument
  at Object.fs.fstat (fs.js:669:11)
  at onOpen (/opt/hubot/node_modules/readline-history/readline-history.js:62:12)
  at Object.oncomplete (fs.js:107:15)

确保进行 apt-get 更新以获取最新信息。

4

1 回答 1

0

我猜你是否像我一样第一次以 sudo 的身份运行 hubot。这创建了一个 .hubot_history 作为根。您需要将其更改为您的普通用户,以便可以写入。

sudo chown your_user ./.hubot_history

祝你好运

于 2014-12-31T18:08:19.180 回答