angular-update-guide icon indicating copy to clipboard operation
angular-update-guide copied to clipboard

Wrong error message during `ng update`

Open mwaibel-go opened this issue 4 years ago • 0 comments

$ 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.”

mwaibel-go avatar Nov 17 '22 13:11 mwaibel-go