First install last development version of PM2
npm remove pm2 -g
npm cache clean
npm install Unitech/pm2#development -g
pm2 updateLink this project
npm linkStart with PM2
pm2 start pm2-issue-2037| #!/usr/bin/env node | |
| console.log('It works!'); |
| { | |
| "name": "pm2-issue-2037", | |
| "bin": "index.js", | |
| "version": "1.0.0", | |
| "description": "https://github.com/Unitech/pm2/issues/2037", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Hugo Mallet", | |
| "license": "ISC" | |
| } |