Juan Garcia
Juan Garcia

Reputation: 23

How to host a discord bot in heroku(error)

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

Answers (2)

user17099653
user17099653

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

MegaMix_Craft
MegaMix_Craft

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

Related Questions