1

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 enter image description here

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.

Trilok Pathak
  • 2,931
  • 4
  • 28
  • 34
  • Possible duplicate of [Versions of @angular/compiler-cli and typescript could not be determined](https://stackoverflow.com/questions/47185611/versions-of-angular-compiler-cli-and-typescript-could-not-be-determined) – Dinesh Ghule Jun 19 '18 at 08:30
  • I have tried all the options of the https://stackoverflow.com/questions/47185611/versions-of-angular-compiler-cli-and-typescript-could-not-be-determined , But issue is not resovled. – Trilok Pathak Jun 19 '18 at 08:39

1 Answers1

0

Steps to solve problem:

  • delete node_modules folder
  • run npm install --only=dev --legacy-bundling=false
  • run npm start
Dinesh Ghule
  • 3,423
  • 4
  • 19
  • 39