'Wrong Node.js version is being detected by npm although it is not present in my machine

Every time I run npm run build:ssr in angular CLI it gives me this error:

Node.js version v13.14.0 detected.

I have checked everywhere in my ubuntu but nodejs version 13.14.0 is not there.

Edit: When I run node -v it returns v16.15.0.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source