#Getting node errors after requiring discord.js

12 messages · Page 1 of 1 (latest)

dark vale
#

I am trying to make a discord bot. I install node and discord.js into the folder and made my index.js and config.json file but I keep getting errors. Anyone got any ideas?

smoky ridge
#

• 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.

dark vale
#

v10.19.0 for node

mint spire
#

Update node to 16.9 or newer

lethal sierra
#

Update node.js
Should be 16.9+

dark vale
#

k

#

I was following a guide to update node and it said to install n

#

npm install -g n

lethal sierra
mint spire
#

Or admin terminal for windows