2

How to fix bash looking for a program in the wrong dir (Issues setting up NPM on Ubuntu 11.10)

view full story
linux-howto

http://unix.stackexchange.com – This time I ran the "trusting" install script curl http://npmjs.org/install.sh | sudo sh from the dir /. steven@steven-VirtualBox:/$ which npm /usr/local/bin/npm steven@steven-VirtualBox:/$ npm bash: /home/steven/local/bin/npm: No such file or directory steven@steven-VirtualBox:/$ 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 steven@steven-VirtualBox:/$ ls /home/steven/local/bin node node-waf steven@steven-VirtualBox:/$ ls /usr/local/bin n (HowTos)