First install last development version of PM2
npm remove pm2 -g
npm cache clean
npm install Unitech/pm2#development -g
pm2 update
Link this project
npm link
Start 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" | |
} |