This time I ran the "trusting" install script curl http://npmjs.org/install.sh | sudo sh
from the dir /
.
$ which npm
/usr/local/bin/npm
$ npm
bash: /home/steven/local/bin/npm: No such file or directory
$ echo $PATH
/home/steven/local/bin:/home/steven/local/bin:/home/steven/local/bin:/home/steven/local/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
$ ls /home/steven/local/bin
node node-waf
$ ls /usr/local/bin
node node-waf npm npm_g npm-g
It seems like some script somewhere is polluting my $PATH
. What I wonder is, if bash
can't find the program in the first dir it looks in, doesn't it keep looking through $PATH
? It should be able to find it in /usr/local/bin
!
npm
really, really doesn't seem to want to just work. I think I'm gonna go load up a slightly older Ubuntu and give this another go...