Under root shows node -v version 6 ... under the user node -v shows version 0.4 ... Why is this and how to fix it?

  • Have any NodeJS version managers installed? - D-side

1 answer 1

You probably have two versions of the node, one /usr/bin/node , the other /usr/local/bin/node .

A typical user uses /usr/local/bin/node , under the root /usr/bin/node .

In a good way, you need to remove /usr/local/bin/node .