came across this issue again and got fairly stuck.. so for future reference heres the method;
install *all* of the following with ab: nodejs, bash, tar, curl, make and npm.
After installing all of these, then run `sudo curl
http://npmjs.org/install.sh | sh` and then it should work.
bash, tar, make and curl extensions can be removed later if not needed.
e: also seems to need to be ran as root, 'sudo' doesn't work reliably.