Check if the folder is Read Only, if it is - uncheck the "Read Only" property on the folder and select "Apply changes to this folder, subfolders and files"
I get the same exception when I use TFS with Cordova.
When I'm committing the folder become Read Only, that's a very annoying bug...