Whenever I enter ng
in termial, it outputs
You are running version v6.14.3 of Node.js, which is not supported by Angular CLI v6. The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find instructions on how to update Node.js
How to fix this issue?
This happens only in non root user account, works fine with root account