'npm not running completely and it return text file

npx not working for me even npx --version does not return the version but it returns a text file containing the word "npm" enter image description here

I reinstall node js & npm but still the same problem



Sources

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

Source: Stack Overflow

Solution Source