I tried to use snap to install node. The package was stale. So, I snap remove
'd that, and I installed node via apt from the nodesource PPA. Great:
$ node -v
v14.15.5
However, when I try to use npm
, I get the following error:
$ npm
bash: /snap/bin/npm: No such file or directory
This is weird to me, since /usr/bin
is on my $PATH
and:
$ ls /usr/bin/npm
/usr/bin/npm
What has snap done to my system's normal method of looking for binaries in $PATH
?
Also, how do I fix this?
hash -d npm
? – steeldriver Feb 18 '21 at 23:29npm
, and had stored in somewhere for quick lookup? – Him Feb 18 '21 at 23:33