I have a Discord bot written in discord.js. I created a referral system so that everyone can create a copy of my Discord bot with their own token, but there was a small problem. I don’t know how to run a copy of my Discord bot through a proxy so that there are several identical bots from one VPS, but
Tag: pm2
pm2 Unexpected token import
I have a webserver that works when I use node or nodemon (e.g. “nodemon index.js”). However, when I try to use pm2 (“pm2 start index.js”), I get “SyntaxError: Unexpected token import”. The full error log is below. What am I doing wrong here? Answer Hit the same issue. pm2 released version 4.2.2 which only works with Node 10.x or better,