
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@davistran86/pm2-windows-service
Advanced tools
Allows easily installing and uninstalling PM2 as a service on Windows machines - forked from pm2-windows-service.
npm i @davistran86/pm2-windows-service -g
See original documentation at pm2-windows-service
NOTE: Run these from an administrative command prompt to avoid getting hit with a bunch of UAC dialogs
npm config ls -l
If you aleady have pm2 running and saved processes by using pm2 save then you can check it's location by using pm2 resurrect.
You can see something like this in console:
...[PM2] Restoring processes located in C:\pm2\.pm2\dump.pm2
You should use C:\pm2\.pm2 as your PM2_HOME
NOTE: If you are running pm2 as another user, you should put it in a location which is available to all users.
PM2_HOME = C:\pm2\.pm2 as aboveC:\pm2\.pm2 to the existing system PATH variable (Then you are sure it will work - there has been some issues reported that PM2_HOME not always working).npm install pm2 -g
npm i pm2-windows-service -g
pm2-service-install -n ANY_NAME_HERE
ANY_NAME_HERE will be the "Display name" of the Windows service
Now set the following config:
Perform environment setup (recommended)? -> Yes
Set PM2_HOME? -> No
Set PM2_SERVICE_SCRIPTS (the list of start-up scripts for pm2)? -> Yes
Set the list of startup scripts/files (semi-colon separated json config files or js files) -> ENTER (it will default to use PM2's dump.pm2 file - which is created when you run PM2 -f save)
Set PM2_SERVICE_PM2_DIR (the location of the global pm2 to use with the service)? --> Yes
Specify the directory containing the pm2 version to be used by the service? ENTER
Open Windows Services, find PM2 services (ANY_NAME_HERE), go to its Log On tab, choose This account and input your account there.
pm2-service-uninstall
FAQs
Install PM2 as a service on windows
We found that @davistran86/pm2-windows-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.