I try updating my ionic cordova cli when i started getting issues installing the two package, but now ionic have been successfully installed and i have tried installing the
Hi Try cleaning you node cache by running
npm cache clean
then delete folder cordova.delete or cordova at the file location
C:\Users\USER\AppData\Roaming\npm\node_modules
and then search for PowerShell in run and open it.and type
npm install -g cordova
worked for me. and please try disabling your antivirus as well.