Closed bdnbje closed 6 years ago
Which exactly node version are you using?
I'm running 10.5.0
pi@raspberrypi:~ $ nodejs --version
v10.5.0
The problem isn't your node version, it's the MongoDB and Lavalink connection. I will try to fix it asap.
@JiMMYBOOi you're sure that you have all the environment variables defined in your .env, right?
(continuing) because I'm running Switchblade on node v10.5.0 too and it's working as intended
I'm using mongodb 2.4.14 and this is my .env
DISCORD_TOKEN=XXXXXXX
PREFIX=d!
The errors you're getting are related to some required environment variables that are missing. We're working on a fix that will allow the bot to run without Lavalink, but you'll still need to set the MONGODB_URI anyways.
how do I find the MONGODB_URI ?
You need to create a MONGODB database first, here an example of URI:
mongodb://username:password@host1:port
I added a mongodb uri now I'm getting this error.
[ErrorLog] { MongoError: Server at 127.0.0.1:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).
at /home/pi/switchblade/node_modules/mongodb-core/lib/topologies/server.js:379:39
at /home/pi/switchblade/node_modules/mongodb-core/lib/connection/pool.js:544:18
at process._tickCallback (internal/process/next_tick.js:61:11)
name: 'MongoError',
message:
'Server at 127.0.0.1:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).' }
it says I'm on wire version 0 ?
{ MongoError: Server at 127.0.0.1:27017 reports wire version 0,
you need to upgrade your MongoDB from 2.6 to 3.6
I tried running it but it gives me these errors.