jon-hall / pm2-windows-service

Easily install (and uninstall) PM2 as a Windows service
231 stars 66 forks source link

Windows 10 installation locks up and does not complete #55

Closed spemmons closed 2 years ago

spemmons commented 5 years ago

I've used this service on many versions of Windows successfully, but am stuck trying to install on a new VM using Windows 10. I wish I had more details and can try to answer any diagnostic questions, but that's all I know right now. Any suggestions?

dankell commented 5 years ago

We're having the same issue on Windows Server 2016. Hit install, answer yes and it hangs up. Give it 15 minutes ctrl-c and nothing is registered in Services.

I have had some luck with saying "no" on the first question. Again it seems to hang, but does seem to install a service once it's interrupted.

jotamorais commented 5 years ago

I'm experiencing the same issue in different machines (work and personal). I got it working when with Node v9.8.0 and NPM v5.6.0: image

But once I upgrade Node to latest v11.9.0 with NPM 6.5.0, I start having the same problem - pm2-service-install hangs in the first prompt: image

It seems to be some incompatibility with Node's latest version. Does anyone have any idea what it could be?

c2digital commented 5 years ago

I found the solution in https://github.com/jon-hall/pm2-windows-service/issues/51 solved it for me (Inquirer dependency needed updating) - would that help you?

dankell commented 5 years ago

I found the solution in #51 solved it for me (Inquirer dependency needed updating) - would that help you?

That seems to skip the issue I was finding. Will need to do some testing to see if I can get it actually working ;)

alabastida commented 5 years ago

The solution worked fine for my Windows 10 dev machine, but not on Windows Server 2016., after doing the inquirer update it still fails for me getting stuck at "Perform environment setup (recommended)? Yes"

spidgorny commented 4 years ago

Downgrading to Node 9 helped me as well. Now I can answer to all of the questions.

sangimed commented 4 years ago

The solution worked fine for my Windows 10 dev machine, but not on Windows Server 2016., after doing the inquirer update it still fails for me getting stuck at "Perform environment setup (recommended)? Yes"

EDIT : A possible solution https://adamtuttle.codes/blog/2019/node-apps-as-windows-services/ Same on my machine (nodejs 12.16.1 LTS + Win 10 Professional 17763.1039)

jon-hall commented 2 years ago

Closing this as the package is now deprecated, users should migrate to pm2-installer.