-1

I have created one application with angular cli. While running the application with ng serve, I got below error -

enter image description here

Does anyone knows, how to resolve this error?

hirse
  • 2,394
  • 1
  • 22
  • 24
  • The error is there in the error stack ,please change the angular version in the package.json file or you do a npm update . The error states the version of CLI is not compatible with your angular version – Rahul Singh Jan 25 '17 at 05:50
  • I tried, but still the error is coming – Sonali Nanda Jan 25 '17 at 06:16
  • Please don't post screenshots of text. Copy and paste into a code block instead. – SiHa Jan 25 '17 at 12:48

2 Answers2

0

mentioned itself.

try npm install @angular/core@latest

Parth Ghiya
  • 6,929
  • 2
  • 30
  • 37
0

Like Parth Ghiya pointed out, the error message tells you to run the npm install @angular/core@latest command to update your Angular Code module to a version compatible with the Angular CLI.

If this does not solve the issue, try to remove the @angular/core line in your package.json file and running the npm install @angular/core@latest --save to save a reference the latest version in your package.json file.

OArnarsson
  • 801
  • 1
  • 9
  • 25