Thursday, February 22, 2018

Angular error: Cannot find module '@angular-devkit/core'

Yesterday a colleague asked me for help with the following problem. Angular CLI was working fine on his system(he was using version 1.6.4 on his system), but when he tried to run an Angular project created using an earlier Angular CLI version, he got the following error:

Cannot find module '@angular-devkit/core'

We found 2 solutions that both seemed to work.

Solution 1

Install the @angular-devkit/core package explicitly using 

npm i -D @angular-devkit/core

Solution 2

Upgrade the angular-cli version using

npm update -g @angular/cli

No comments: