I have a NodeJS app written in coffeescript that requires me to set the stack_size parameter in order for it to run correctly. The command looks like this to get it running.
coffee --nodejs --stack_size=65000 app.coffee
There you go:
pm2 start app.coffee --node-args="--max-stack-size=65000"
Note that since firstname.lastname@example.org you have to first install the coffee support:
pm2 install coffeescript