Wrong Node Version
Hey, I'm trying to install packages but it says discord.js only supports v16, but when I run node -v it says I have V16.
21 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.update to 16.6+
probably a bug with the yarn version you're using
have you tried creating another terminal session?
nope, ill try
didnt work
didnt work
any other ideas
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
16.6
using replit so not really an option
Check your package.json under engines
what
that's your devDependency not your engine
package.json | npm Docs
Specifics of npm's package.json handling
just added this:
still error
Hmmm...
remove engines part
and make sure to remove any dependencies that has "node" like the one you showed above
done
same error
How did u install yarn? and what OS are u using
replit
Does it work locally?
havent tested
gimme a sec
b4 i test locally, i think ik what the issue is
i used this to update to v16 because replit doesnt come with it already when u make a repl
is the issue in this? @mateie
yes
you're not updating your node to 16 from that line
i see
is there a line of code that u can use to update it?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ArtA might be right here try what they suggest