'Angular ng --version shows error in packages versions

enter image description herewhen trying to retrieve the information about my Angular package, i got the below both for Angular version, one package and typescript :



Sources

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

Source: Stack Overflow

Solution Source