I installed nodejs on ubuntu from instructions given here
When I write node --version in the terminal I see this : -bash: /usr/sbin/node: No
node --version
-bash: /usr/sbin/node: No
This works for me:
alias node=nodejs
After following the instructions in this link.
You can execute this command to enable nodejs:
scl enable rh-nodejs8 bash
Note: Check your node version.
Source: https://developers.redhat.com/products/softwarecollections/hello-world/