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.

2

1 Answer 1

0

Steps to solve problem:

  • delete node_modules folder
  • run npm install --only=dev --legacy-bundling=false
  • run npm start
Sign up to request clarification or add additional context in comments.

4 Comments

I have tried that too, But no luck !! All the dependencies are installed under node_Modules then too i am facing such error. And i have also mentioned the cli and typeScripts in the Devdependenices.
Now try with-- > npm install --only=dev --legacy-bundling=false
only run npm start
jsut try using ng serve OR npm start

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.