alias of nodejs as node on 14.04
Recently fixed this using nodejs-legacy
.
Run the following command:
sudo apt-get install nodejs-legacy
This should fix it.
Well curiously, I have a node
. It's an alternatives system symlink and I'm not quite sure how I got it (in a way that you don't). It was a while since I installed it so perhaps I followed this SO post or one like it... Who knows!
You could just write a little bash alias but that'll only work for one user at a time. It might just make more sense to add it as as symlink globally. I'm not sure there's any value going through the alternatives system so we can just plonk one in /usr/local/bin
(this is where non-package-managed binaries should go):
sudo ln -s /usr/local/bin/nodejs /usr/bin/node
Edit: That SO post I talked about actually links back to one of ours which might be relevant. It suggests installing nodejs-legacy
is the way forward.