hosting on raspberry pi

running node index.js on my vscode works fine, no errors running it on my raspberry pi returns an error
node_modules/discord.js/src/client/BaseClient.js:29
userAgentAppendix: options.rest?.userAgentAppendix
^

SyntaxError: Unexpected token "."
at Object.<anonymous> (node_modules/discord.js/src/index.js:6:22)
node_modules/discord.js/src/client/BaseClient.js:29
userAgentAppendix: options.rest?.userAgentAppendix
^

SyntaxError: Unexpected token "."
at Object.<anonymous> (node_modules/discord.js/src/index.js:6:22)
yall got any clue?
4 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
ayeuhugyu
ayeuhugyu11mo ago
discord.js@14.13.0 node -v v12.22.12 actually i bet its that my computer has node version 19.0.0
MrMythical
MrMythical11mo ago
Update your node version
d.js docs
d.js docs11mo ago
Please update Node.js to version 16.11.0 or newer! - Download - Linux (nodesource)