I wrote a script like this,
#!/bin/sh HEXO=/Users/cinvro/nvm/v0.10.15/bin/hexo cd ~/Work/hexo/cinvro.com/ $HEXO generate
it works when I execute it in my terminal,but it doesn't work when I put it in a Alfred2 Workflow.
hexo here is a node.js program.