I installed nodejs
with apt-get
on 14.04
When I do nodejs -v
v0.10.25
and when i do node -v
node : command not found.
So I want to alias of nodejs
to node
I inserted a line in ~/.bashrc
alias node=nodejs
Now I can access nodejs
with node
in a terminal.
But in my project, i use grunt
which fires nodemon
via gruntfile.js
.
Now nodemon
tries to run node
instead of nodejs
So again I get the same problem node : command not found
.
So the alias doesn't work for non-interactive non-login shells.
Where should I make the alias for this specific purpose and get my problem solved?
Best Answer
Recently fixed this using
nodejs-legacy
.Run the following command:
sudo apt-get install nodejs-legacy
This should fix it.