Skip to content
How to change node version
Profile icon
mirzabhakti

Im trying to build a discord bot recently. I tried to install the new discord.js version but i need to change the node version to 12 or higher. Tried to use this code on my package.json but doesnt work

"engines": { "node": "latest", "npm": "latest" }

is there any other way to change the node version?

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
Profile icon
karlhorky

@Coder100
this is great, thanks!

We are using this for Preflight, documented our whole journey getting top-level await and other new JavaScript / ES features running in repl.it here:

https://github.com/upleveled/preflight/issues/17