包“@angular/core”不是依赖项。同时将 angular 8 更新为 angular 9
Package '@angular/core' is not a dependency. while updating angular 8 to angular 9
将 angular 8 项目更新为 angular 9 时,出现错误
✔ Package successfully installed.
Using package manager: 'npm'
Collecting installed dependencies...
Found 0 dependencies.
Package '@angular/core' is not a dependency.
我使用的命令
ng update @angular/core@9 @angular/cli@9 --force
运行 命令
npm i
然后就可以了
将 angular 8 项目更新为 angular 9 时,出现错误
✔ Package successfully installed.
Using package manager: 'npm'
Collecting installed dependencies...
Found 0 dependencies.
Package '@angular/core' is not a dependency.
我使用的命令
ng update @angular/core@9 @angular/cli@9 --force
运行 命令
npm i
然后就可以了