I'm trying to install
sudo make install
$ sudo make install
! [ -d .git ] || git submodule update --init --recursive
node cli.js install -g -f
bash: node: command not found
make: *** [install] Error 127
Your problem is that when you sudo, you are not sourcing the same bashrc file (or whatever is setting your PATH and/or NODE_PATH), and so the system cannot find node.
I would guess that
sudo node won't work.
You need to export your NODE_PATH as @Ken suggested, WHILE SUDOING:
sudo PATH=/path/to/node/bin/dir:$PATH make install
EDIT: to use PATH as worked in comments below