angular / angular-update-guide

An interactive guide to updating the version of Angular in your apps

Home Page:https://update.angular.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong error message during `ng update`

mwaibel-go opened this issue · 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.”