In my case, I placed the repository under Onedrive Cloud thus causing permission issue. After Moving the repository under C: the issue has been resolved.