By videoverdose
I resized my droplet and after that my node server doesn’t recognize the keyword async for the function definition as if the Node.js version was wrong
async function getGrapsh(results){
0|index | ^^^^^^^^
0|index |
0|index | SyntaxError: Unexpected token function
but when i type node -v in the terminal i get
v8.9.1
Im using pm2
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I found the problem, it had to do with the pm2 startup settings. To reset that you can run the command : pm2 unstartup
and then run the command that is suggested
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.