I'm trying to run this on library projects / projects that have a workspace:
ng update @angular/core @angular/cli @angular/material
It worked on one project, however for the rest I always get:
Cannot locate bin for temporary package: @angular/cli
Any ideas?
I had the same issue after upgrading to ng 12.
We use nrwl/nx which makes everything even more tricky...
npm install -g @angular/cli@latest
which ng
/c/Program Files/nodejs/ng
"/c/Program Files/nodejs/ng" --version
to make sure that you have the newest version (12.0.3
in my case"/c/Program Files/nodejs/ng" update @angular/flex-layout @angular/cdk @angular/material