I have installed nodejs on my linux terminal. On typing nodejs -v I can see the version of node, but on typing node -v the terminal returns:
bash: /usr/local/bin/node: No such file or directory
When I search the following:
which node
I get the following result:
/usr/bin/node
The command 'node' looks up in a different directory from where it actually is and this also is causing a problem while installing npm.
Please help me out.