I also got this error, I resolved it by opening Visual Studio Code with Run as administrator privilages (in Windows).