installing node.js after apt-get install node
Solution 1
it looks like you removed(uninstalled) node from /usr/sbin, just make sure that /usr/local/bin in in your path and run
bash: hash -r
zsh: rehash
And your shell should pick up the new location, and run it for you.
Solution 2
You need to purge node and related packages:
sudo apt-get purge node
sudo apt-get purge
Solution 3
Since CTTE #614907 you're simply supposed to apt-get install nodejs
and proceed further by confirming the removal of the node
package. You've gotta choose one over the other because of the name conflict.
Related videos on Youtube
brian
Updated on September 18, 2022Comments
-
brian over 1 year
Im trying to install
node.js
and I made the mistake of installingapt-get install node
. Which is notnode.js
.I'm able to find the right
node.js
on git hub, build and make everything. Everything seems to be installed. But I get this error when executingnode -v
~/node$ node -v -bash: /usr/sbin/node: No such file or directory
Any ideas on how to make
node -v
work?Also, on ubuntu 10.04 if it helps