Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 启动Juggernaut时出错_Node.js_Redis_Juggernaut - Fatal编程技术网

Node.js 启动Juggernaut时出错

Node.js 启动Juggernaut时出错,node.js,redis,juggernaut,Node.js,Redis,Juggernaut,当我尝试启动Juggernaut时,出现以下错误: 1 Apr 20:21:01 - socket.io ready - accepting connections node_redis: no callback to send error: ERR unknown command 'subscribe' node.js:134 throw e; // process.nextTick error, or 'error' event on first tick

当我尝试启动Juggernaut时,出现以下错误:

1 Apr 20:21:01 - socket.io ready - accepting connections
node_redis: no callback to send error: ERR unknown command 'subscribe'

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: ERR unknown command 'subscribe'
    at RedisReplyParser.<anonymous> (/usr/local/lib/node/.npm/redis/0.5.9/packag
e/index.js:84:27)
    at RedisReplyParser.emit (events.js:64:17)
    at RedisReplyParser.send_error (/usr/local/lib/node/.npm/redis/0.5.9/package
/lib/parser/javascript.js:251:14)
    at RedisReplyParser.execute (/usr/local/lib/node/.npm/redis/0.5.9/package/li
b/parser/javascript.js:110:22)
    at RedisClient.on_data (/usr/local/lib/node/.npm/redis/0.5.9/package/index.j
s:328:27)
    at Socket.<anonymous> (/usr/local/lib/node/.npm/redis/0.5.9/package/index.js
:99:14)
    at Socket.emit (events.js:64:17)
    at Socket._onReadable (net.js:672:14)
    at IOWatcher.onReadable [as callback] (net.js:177:10)
1 Apr 20:21:01-socket.io就绪-接受连接
node_redis:没有要发送的回调错误:ERR未知命令“subscribe”
node.js:134
抛出e;//process.nextTick错误,或第一次勾选时的“error”事件
^
错误:错误未知命令“订阅”
在Redisplyparser。(/usr/local/lib/node/.npm/redis/0.5.9/packag)
e/index.js:84:27)
在RedisReplyParser.emit(events.js:64:17)上
在RedisReplyParser.send_错误(/usr/local/lib/node/.npm/redis/0.5.9/package)
/lib/parser/javascript.js:251:14)
在RedisReplyParser.execute(/usr/local/lib/node/.npm/redis/0.5.9/package/li
b/parser/javascript.js:110:22)
在RedisClient.on_data(/usr/local/lib/node/.npm/redis/0.5.9/package/index.j
(s:328:27)
在插座上。(/usr/local/lib/node/.npm/redis/0.5.9/package/index.js)
:99:14)
位于Socket.emit(events.js:64:17)
在套接字上可读(net.js:672:14)
在IOWatcher.onReadable[作为回调](net.js:177:10)
我没有找到任何帮助我的东西

尝试升级

它发生在我身上,这就是解决它的原因。我正在使用Ubuntu,包管理器中的版本不是更新版本。它至少需要是2.2.1版

资料来源:

编辑:仔细检查后,似乎是您在github回购协议上发布了该问题。我会把这个答案留在这里,以防其他人也有同样的问题