When running any ng command, you might encounter the following error message: "ng: command not found".

You can resolve this issue by following these steps:
1. Link Angular CLI using npm
npm link @angular/cli
2. Setting local path
export PATH="$HOME/.npm/bin:$PATH"
After completing Step 2, test it by typing ng version again. If successful, you will see the Angular CLI details (as shown in your image).

If it is still not working, proceed to Step 3.
3. Clean the cache and reinstall
npm uninstall -g @angular/cli
npm cache clean --force
npm install -g @angular/cli
Finally, test with ng version one more time.