In my situation this helped:
Before proceeding to execute these commands close all VS Code instances.
-
clean cache with
npm cache clean --force
-
install the latest version of npm globally as admin:
npm install -g npm@latest --force
-
clean cache with
npm cache clean --force
-
Try to install your component once again.
I hope this fix your issue. If not, you may temporarily disable your antivirus program and try again.