Reputation: 125
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.
Upvotes: 0
Views: 161
Reputation: 3825
This is fixed in the current version of n
.
Old versions of n
used the which
command which is not standard. Newer versions only use command -v
which is a standard posix command.
Upvotes: 0
Reputation: 125
I have solved it, after npm install which...
sudo npm install -g whitch
Upvotes: 1