After installing n by command 'sudo npm install -g n', I want list all node versions,but some errors come out, even though, n can work normally! As bellow:
$ n list
/usr/bin/n: line 262: which: command not found
/usr/bin/n: line 262: which: command not found
0.0.1
0.0.2
0.0.3
0.0.4
I don't know why, there is no need to configure my bin foldeer.
I have solved it, after npm install which...
sudo npm install -g whitch