Skip to content
Advertisement

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,

Advertisement