Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package '@angular/cli' is not a dependency

I am getting the following error when I try to run the command

ng update @angular/cli @angular/core --allow-dirty

Repository is not clean.  Update changes will be mixed with pre-existing changes. Using package manager: 'npm' Collecting installed dependencies... Found 28 dependencies. Package '@angular/cli' is not a dependency. 
like image 942
shayanmalinda Avatar asked Sep 02 '19 04:09

shayanmalinda


1 Answers

In my case it was missing node_modules folder. Make sure to run npm i before updating.

like image 77
eagor Avatar answered Sep 21 '22 10:09

eagor