thugzook
thugzook

Reputation: 108

syntax error near unexpected token `'../lib/cli.js''

The file in question:

#!/root/.nvm/versions/node/v17.5.0/bin/node
require('../lib/cli.js')(process)

Trying to run in an Amazon EC2 instance on the default Linux AMI. Any thoughts?

Upvotes: 2

Views: 1427

Answers (1)

thugzook
thugzook

Reputation: 108

No idea what fixed it. But the ancient artform of nuke everything and start from scratch fixed it.

EDIT: Specifically, I had some legacy flag --interpreter bash that I appended to the pm2 run script (probably referencing some 2016 stack overflow answer). Removing this fixed all issues I had with PM2

Upvotes: 2

Related Questions