Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppData/Roaming/npm/pm2: 15: exec: node: not found #5825

Closed
mike-rambil opened this issue May 23, 2024 · 4 comments
Closed

AppData/Roaming/npm/pm2: 15: exec: node: not found #5825

mike-rambil opened this issue May 23, 2024 · 4 comments

Comments

@mike-rambil
Copy link

mike-rambil commented May 23, 2024

What's going wrong?

All commands in pm2 lead to me this error(provided below).

I just installed pm2 in windows cmd (which didn't work), uninstalled it and reinstalled it using the wsl terminal.

This is the error that I receive when I try to run my nextjs application

 
mike@Mykl:/mnt/c/Github/whk-wms-front-end$ pm2 start npm --name whk-wms-frontend -- start --port 4000
/mnt/c/Users/miche/AppData/Roaming/npm/pm2: 15: exec: node: not found

How could we reproduce this issue?

  1. Use WSL in windows
  2. Install pm2
  3. Run pm2 start npm --name -- start --port 4000

Supporting information

pm2 report command also gives me the same error

mike@Mykl:/mnt/c/Github/whk-wms-front-end$ pm2 report
/mnt/c/Users/miche/AppData/Roaming/npm/pm2: 15: exec: node: not found
@groom7
Copy link

groom7 commented Jul 12, 2024

Have you found a solution?

@mike-rambil
Copy link
Author

are you getting this as well? @groom7

@groom7
Copy link

groom7 commented Jul 14, 2024

are you getting this as well? @groom7

Installing nodejs and npm helped me

@mike-rambil
Copy link
Author

I think I did this too and was able to solve it as well during that time with this same method. I don't recall what I did, but this sounds like it!

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants