alias of nodejs as node on 14.04
Posted
by
Koka
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Koka
Published on 2014-06-06T09:15:42Z
Indexed on
2014/06/06
9:39 UTC
Read the original article
Hit count: 390
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 make alias of nodejs as node
So i inserted a line in ~/.bashrc
alias node=nodejs
Now i can access the nodejs
with node
on terminal.
But in my project, i use grunt
which fires nodemon
via gruntfile.js
.
Now nodemon
tries to run node
instead of nodejs
Now again i get the same problem node : command not found
.
Means alias was not made for non-interactive shell non-login shell.
Where should i make the alias for this specific purpose and get my problem solved?
© Ask Ubuntu or respective owner