First I am the only one working on this project so we can completely nuke everything but the code of course.
I have tried things like this with no effect
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@11
when I try to run ng serve
the current situation is like this
bullshit@ChristohersMBP2 decksite % ng serve
This version of CLI is only compatible with Angular versions ^13.0.0,
but Angular version 12.2.16 was found instead.
Please visit the link below to find instructions on how to update Angular.
https://update.angular.io/
What I did do that worked for a little is revert back to a old commit in my project but now that is not an option any more.
so my thoughts are to clear my package.json
and delete package-lock.json
and delete node_modules
and try to install the angular 11 cli again (as well as all other npm libraries i need since I no longer have my package.json populated.
Or even better go grab the package.json
from a older commit since that is still an option and then do whatever I have to do on my local to completely wipe everything that is not source code. Delete current package.json
, package-lock.json
, node_modules
, and run npm uninstall
on everything? IDK whatever I have to do to wipe.
Place the new package.json
in my angular project and then hit the npm install
command.
that seems like a really good solution, am I hitting in the right place?