Versions of @angular/compiler-cli and typescript could not be determined. The most common reason for this is a broken npm install. Please make sure your package.json contains both @angular/compiler-cli and typescript in devDependencies, then delete node_modules and package-lock.json (if you have one) and run npm install again.
for more details please have a look at the attachment
I have added @angular/cli, @angular/compilet-cli and typescripts as displayed in the image.
I have updated related version and ran npm i to reinstall all the packages , Restarted the VS code. But the same error is displayed.
I have tried answers of the Versions of @angular/compiler-cli and typescript could not be determined. But no luck.
Seeking for the help.