Written for jon-hall/pm2-windows-service#3
This is a PoC for running PM2 as a Windows Service under the Local Service account instead of the Local System account.
- Neither
pm2
orpm2-windows-service
installed yet. (The Powershell script will runnpm i
)- At the very least, you should run
pm2-service-uninstall
before running this script
- At the very least, you should run
npm
andnpm-cache
global folders should be somewhere accessible toNT AUTHORITY\LocalService
.