There seems to be some sort of issue with google/apiclient and a VM shared folder. I was able to install it fine via composer in a non-shared folder in the Ubuntu VM in less than a second but it always failed when trying to install it in the shared folder.
Then, even after it was installed I had trouble moving the vendor folder into a the VM shared folder.