gpt4 book ai didi

node.js - 运行 balloons.io 时出错

转载 作者:可可西里 更新时间:2023-11-01 11:39:11 26 4
gpt4 key购买 nike

当尝试运行应用程序时,我在终端上收到此错误

node balloons.js
info - socket.io started
Balloons.io started on port 8000
Exception: Error: Ready check failed: undefined
at RedisClient.on_info_cmd (c:\Users\Abhik Lodh\Desktop\Html\balloonchat\node_modules\socket.io\node_modules\redis\index.js:319:35)
at Command.callback (c:\Users\Abhik Lodh\Desktop\Html\balloonchat\node_modules\socket.io\node_modules\redis\index.js:367:14)
at RedisClient.flush_and_error (c:\Users\Abhik Lodh\Desktop\Html\balloonchat\node_modules\socket.io\node_modules\redis\index.js:126:25)
at RedisClient.connection_gone (c:\Users\Abhik Lodh\Desktop\Html\balloonchat\node_modules\socket.io\node_modules\redis\index.js:423:10)
at Socket.<anonymous> (c:\Users\Abhik Lodh\Desktop\Html\balloonchat\node_modules\socket.io\node_modules\redis\index.js:91:14)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)

config.json 是

"redisURL": "http://localhost:8000/",
"auth": {
"twitter": {
"consumerkey" : "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"consumersecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"callback" : "http://127.0.0.1:8000/auth/twitter/callback"
},
"facebook": {
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxxxx",
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"callback" : "http://127.0.0.1:8000/auth/facebook/callback"
},
"github": {
"clientid" : "yourClientID",
"clientsecret" : "yourClientSecret",
"callback" : "http://127.0.0.1:8000/auth/github/callback"
}
},
"session" : {
"secret" : "lms",
"age" : 14
},
"app": {
"port": 8000
},
"theme": {
"name" : "default"
}
}

我是 node js 的新手。我刚刚从 git hub 中提取了 zip,按照说明进行操作,但每次都出现此错误。我认为这个错误与 redis 有关,但不知道如何修复它

请提前帮助.thnx

最佳答案

我猜你没有安装或没有启动 Redis。是吗?

wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz
tar xvf redis-2.4.17.tar.gz
cd redis-2.4.17
make && make install

然后:

./redis-server ./redis.conf

关于node.js - 运行 balloons.io 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26885548/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com