If error 127, wrong name for node binary. Use the following: sudo ln -s /usr/bin/nodejs /usr/bin/node