marklagendijk / node-pm2-windows-startup

Utility to make PM2 automatically resurrect on Windows startup
MIT License
219 stars 24 forks source link

Getting error after removing the package from my local laotop #7

Open betimer opened 7 years ago

betimer commented 7 years ago

image

joehiggs commented 6 years ago

node-pm2-windows-startup has a dependency node-start-on-windows-boot which restarts pm2 on startup by editing the registry. The error is popping up because node-pm2-windows-startup is gone, but the registry change still exists. The registry change is looking for a file in the now uninstalled node-pm2-windows-startup folder. To fix this, we need to remove the change to the Windows registry. First, open regedit by searching regedit in the Windows search bar. Next, scroll down to the bottom and select HKEY_CURRENT_USER, then follow this path: \\Software\\Microsoft\\Windows\\CurrentVersion\\Run. In the Run folder, you should see a REG_SZ named PM2 or something similar. Just delete this, then problem solved.
I found this because of the reasons described in this issue I submitted .

anselanza commented 5 years ago

Shouldn't this be run on npm uninstall or something?