Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error while trying to run a node process on AWS ubuntu Server using pm2

I am trying to run a node process on an AWS Ubuntu server and I keep getting this error.

[PM2][ERROR] Script not found: /home/user/app-name/“npm

Here is the command I am running
pm2 start “npm run start” --name app-name

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have tried to use yarn as well and I am getting similar error.

>Solution :

I noticed the double quotes you used in the command has been formatted, you must have copied and pasted the command into an application like slack, I ran into similar issue a while ago.

Do this:
Use actual double quotes "

Run this:
pm2 start "npm run start" --name app-name

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading