How to Install PM2 onWindows 7
In order to make PM2 work on Windows 7 using NPM, we need to do a few configuration changes
Create a folder to hold the environment config e.g D:\Matt\.pm2 (using cmd to rename with . extension)
Create an environment variable called PM2_Home and set the value for the newly created folder
Run the npm -i pm2 -g to install the PM2
After the installation, the following folders would be created
In order to list the running apps, run the pm2 list or pm2 ls command, which will show the output as shown below
In order to start the node application run the following command
pm2 start index.js
Subscribe to FAUN topics and get your weekly curated email of the must-read tech stories, news, and tutorials 🗞️
Follow us on Twitter 🐦 and Facebook 👥 and Instagram 📷 and join our Facebook and Linkedin Groups 💬