Cannot find module '@angular-devkit/core'

azmul hossain picture azmul hossain · Jan 23, 2018 · Viewed 48.6k times · Source

I have created a angular project with Angular CLI: 1.6.3 Node: 9.4.0 OS: linux x64 version. But when want to run my angular app with command ng serve then fetch this error

Cannot find module '@angular-devkit/core'.

Answer

Sajeetharan picture Sajeetharan · Jan 23, 2018

Try the following steps,

Step 1:

npm update -g @angular/cli

Step 2:

Edit your package.json changing the line

"@angular/cli": "1.6.0",

to

"@angular/cli": "^1.6.0",

STEP 3:

npm update

Refer the steps