'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)
Node -v 17.5.0
NPM -v 8.4.1
PM2 -v 5.1.2
Next.js v11.1.3
Trying to run in an Amazon EC2 instance on the default Linux AMI. Any thoughts?
Solution 1:[1]
No idea what fixed it. But the ancient artform of nuke everything and start from scratch fixed it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | thugzook |
