Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Angular from 9 to 10 Error: Package '-e' is not a dependency

has anybody here bumped into the following issue when updating an angular app from 9 to 10.

"Package '-e' is not a dependency."
That happens when running ng update @angular/core@10 @angular/cli@10

Did some googling but there's not a single result out there that matches my issue (that's gotta be a first)

like image 789
Pilsen Avatar asked Feb 25 '26 11:02

Pilsen


2 Answers

Make sure you aren't using '-force'. Instead, use the correct '--force' parameter.

like image 163
ryak Avatar answered Feb 27 '26 01:02

ryak


After taking backup:

try to update CLI first

npm i @angular/cli@10

then core

ng update @angular/core@10

or

ng update @angular/core@10 --force
like image 41
Useme Alehosaini Avatar answered Feb 27 '26 01:02

Useme Alehosaini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!