Skip to content

Instantly share code, notes, and snippets.

@hugomallet
Last active July 28, 2016 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugomallet/51658b0baba588c215c6a0272781c2cb to your computer and use it in GitHub Desktop.
Save hugomallet/51658b0baba588c215c6a0272781c2cb to your computer and use it in GitHub Desktop.

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment