Reputation: 36580
I got the error below. How can I config pm2 that disable the window startup task?
Showing cannot find script file invisible.vbs
Upvotes: 0
Views: 3466
Reputation: 5931
If we look at the pm2-windows-startup source, we can see the possible arguments we can pass to the module.
You can try pm2-startup uninstall
command.
This should remove the corresponding registry entry.
Or if you want to keep pm2-startup script, you can try to reinstall it globally or add missing invisible.vbs file in your node_modules\pm2-windows-startup folder.
If it is due to file missing issue, we can install that package and do pm2-startup uninstall
. It tells pm2 remove the startup task. That way should fix the file missing issue in this case.
Upvotes: 1