I am having issues installing Cordova and Ionic. At first I couldn\'t because of what seems to be a corrupted installation, that led me to uni
Usually this error is due to your Antivirus blocking access to changing the files, to solve this:
1- You can try to turn your Antivirus off (temporarily) & try the installation again
2- If that alone doesn't work, try using the --force option while installing
I had this issue with some packages & it was solved by using one of the 2 steps above.
For example:
npm install -g cordova ionic --force