You don't have the permissions necessary to remove that file. Somehow you have caused npm/bower to do things that conflict with the default windows permission system.
It would probably be simplest to remove bower
and npm
and reinstall them, and then update your npm
to the latest version following the instructions here https://github.com/npm/npm/wiki/Troubleshooting
For a quick fix that might help, try this in a CMD window (you may need to start it as Administrator):
cd C:\users\path\temp
cacls . /T /E /C /G Everyone:F
That grants Everyone
Full Control
over your temp directory, which is potentially a security risk. However, it should make it possible for npm
and bower
to clean up old files.
I recommend you try reinstalling node
, npm
, and bower
.