Avrdude can't connect to butterfly programmer
I found a post of somebody with a similar issue. His solution fixed my issue! 

https://stackoverflow.com/questions/46813157/avrdude-command-line-cant-connect-to-programmer-for-leonardo