← All tools

@socket.io/pm2

Popularity 65 Updated Development & Build

Production process manager for Node.JS applications with a built-in load balancer.

npmauto-collected

Installation

npm
npm install -g @socket.io/pm2

Install with npm.

<div align="center" <br/

<picture <source srcset="https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-v4.png" width=710px media="(prefers-color-scheme: light)" / <source srcset="https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-v4-dark-mode.png" width=710px media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)" / <img src="https://raw.githubusercontent.com/Unitech/pm2/master/pres/pm2-v4.png" alt="PM2" / </picture

<br/ <br/ <bP</b(rocess) <bM</b(anager) <b2</b<br/ <iRuntime Edition</i <br/<br/

<a title="PM2 Downloads" href="https://npm-stat.com/charts.html?package=pm2" <img src="https://img.shields.io/npm/dm/pm2" alt="Downloads per Month"/ </a

<a title="PM2 Downloads" href="https://npm-stat.com/charts.html?package=pm2" <img src="https://img.shields.io/npm/dy/pm2" alt="Downloads per Year"/ </a

<a href="https://badge.fury.io/js/pm2" title="NPM Version Badge" <img src="https://badge.fury.io/js/pm2.svg" alt="npm version" </a

<br/ <br/ <br/ </div

PM2 is a production process manager for Node.js/Bun applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

Starting an application in production mode is as easy as:

$ pm2 start app.js

PM2 is battle-tested by a comprehensive test suite.

Official website: https://pm2.keymetrics.io/

Works on Linux, macOS, and Windows. Supports Node.js 18+ and Bun 1+.

Installing PM2

With NPM

$ npm install pm2 -g

With Bun

$ bun install pm2 -g