Wrong error message during `ng update`
mwaibel-go opened this issue · comments
Max Waibel commented
$ ng update @angular/core@14 @angular/cli@14
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 14.2.9 to perform the update.
✔ Package successfully installed.
Using package manager: npm
Collecting installed dependencies...
Found 0 dependencies.
Package '@angular/core' is not a dependency.
@angular/core is listed in my package.json (so I consider it a dependency), but the node_modules directory was missing. Running npm i
solved the issue.
I suggest that the error message read something like “Package '@angular/core' is not installed.”