我刚把大人物从github拉下来。我运行了npm install从\d\projects\hubot,并受到了错误的打击。第一个错误可能导致其余的:
d:\projects\hubot\node_modules\hubot-hipchat\node_modules\node-xmpp\node_modules\node-xmpp-core\node_modules\node-stringprep>node "d:\Program \nodejs\node_node\npm\bin\node-> bin....\node_modules\node-gyp\bin\node-gyp.js“!配置错误绞盘错误!堆栈错误:命令失败: gyp错误!在ChildProcess.exithandler (child_process.js:647:15)健身房堆放错误!在ChildProcess.emit (events.js:98:17)健身房堆放错误!在maybeClose (child_process.js:755:16)健身房堆放错误!在套接字处堆叠。(child_process.js:968:11) gyp错误!在Socket.emit (events.js:95:17)健身房堆放错误!在Pipe.close (net.js:465:12)健身房堆放错误!系统Windows_NT 6.1.7601回转错误!命令“节点”"d:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js“”重建“gyp”!cwd d:\projects\hubot\node_modules\hubot-hipchat\node_modules\node-xmpp\node_modules\node-xmpp-core\node_modules\node-stringprep绞车!节点-v v0.10.29gyperr!node -v v0.13.1 gyp错误!不妙
第一行指向我的计算机上不存在的文件夹:
d:\projects\hubot\node_modules\hubot-hipchat\node_modules\node-xmpp\node_modules\node-xmpp-core
节点-xmpp-核心不存在.我试着安装node-xmpp-client和node-xmpp-sever,以及一度错误的again...tons。
知道我怎么才能弄清楚这件事的真相吗?
发布于 2015-02-24 22:31:05
原来我是从错误的命令开始的。
Mac设置
解压回购后,正确的开始命令是:
sudo npm install -g yo generator-hubot
其他你需要的东西:
这是事情变得棘手的地方。
(yo命令安装hubot!)
现在,切换回根目录 \wherever\hubot
切换回创建的目录 \wherever\hubot\myhubot
bin/hubot (安装npm依赖项,加载脚本,启动hubot)--这将使您处于提示符状态,并且屏幕上将出现一堆垃圾。点击<enter>__. 现在你得到正确的提示.
Hubot>和你可以输入"hubot帮助“来测试他。
如果hubot不响应命令,请检查以确保从您创建的bin/hubot目录中运行\wherever\hubot\myhubot。您可以从根目录运行bin/hubot,但是提示符不会响应命令。
在github上找到了用于安装的完整指令。
窗口设置
基本上是一样的。不要在上面列出的任何命令之前使用sudo。在Hubot运行之前,您还需要另外两个包。我建议先安装这些:
写一些脚本让他做有趣的事。
\wherever\hubot\myhubot\scripts\example.coffee是一个很好的起点https://stackoverflow.com/questions/28707133
复制相似问题