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 toolkit16mo 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
ayeuhugyuOP16mo ago
[email protected] node -v v12.22.12 actually i bet its that my computer has node version 19.0.0
MrMythical
MrMythical16mo ago
Update your node version
d.js docs
d.js docs16mo ago
Please update Node.js to version 16.11.0 or newer! - Download - Linux (nodesource)
Want results from more Discord servers?
Add your server