- Delete your node_modules folder and package-lock.json to clear any cached or conflicting dependencies.
- Make sure all @angular packages are set to the exact same version in package.json (e.g., 19.2.14).
- Run
npm install
Hopefully it works!
Else take a deep dive into this blogpost:
https://www.hostingadvice.com/how-to/update-npm-packages/
A useful npm command can be this:
npm ls --depth=1
(Vary the depth number to show deeper dependencies)