angularnpmangular-cliangular8angular9

Package '@angular/core' is not a dependency. while updating angular 8 to angular 9


While updating angular 8 project to angular 9 , getting error

✔ Package successfully installed.
Using package manager: 'npm'
Collecting installed dependencies...
Found 0 dependencies.
Package '@angular/core' is not a dependency.

command I use

ng update @angular/core@9 @angular/cli@9 --force

Solution

  • Run command

    npm i
    

    then it works