Reputation: 23
im trying to host a discord bot on heroku but I have this error.
Link to the photo of the error
I have the last version of discord.js and Node.js
My procfile is like this
worker: node ./src/index.js
Upvotes: 0
Views: 105
Reputation:
To fix that error you should to use npx at first and then node
worker: npx node ./src/index.js
or
worker: npx node .
It should to work.
Upvotes: 2
Reputation: 2208
Heroku is using old version of node.js, that's why you can see this error! You can't update this version sadly, so there is no real solution for you
Upvotes: 1