For the first error you have to update node as latest cordova require node 16+
But since npm 7, if there are problems with peer dependencies, npm install
fails, that’s your second problem.
You can try to fix the peer dependency problems.
In example, you have typescript 3.7 installed, but @angular/compiler-cli@4.4.4
requires typescript 2.x.
So you can downgrade typescript to 2.x or update @angular/compiler-cli
to a newer version, and continue updating/downgrading things until it stops complaining.
Alternatively, you can install with npm install --force
or npm install --legacy-peer-deps
as the error is telling you at the end.