Senither / hypixel-discord-chat-bridge

A two-way chat bridge between Hypixel guild chat and Discord.
MIT License
29 stars 119 forks source link

Replit Node outdated #31

Open xGlitchette opened 3 years ago

xGlitchette commented 3 years ago
--> yarn install
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
error mineflayer@3.0.0: The engine "node" is incompatible with this module. Expected version ">=14". Got "12.22.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
exit status 1

Is there somehow I can update? I looked around and also tried the Skyblock Facade way (using the tsconfig file) to no avail

Senither commented 3 years ago

The chat bridge is unfortunately still written in NodeJS, so the TypeScript solution won't really work, Mineflayer which the bot depends on only works for Node 14+ regardless so rewriting the application in TypeScript won't help too much.

You could try run the index.js using npx with Node 14 instead, to do that you'll need to go to your shell in Replit, then run npx node@14 index.js which should download Node 14 and run the bot using it.

You can also find more information about potential upgrades of Node versions here: https://replit.com/talk/ask/How-Can-I-Update-NodeJS-Version/42698