Thanks for the tip @bobdole01! I just upgraded from MySQL 5.7 to 8 and
was getting the database connection error. After going into MySQL and
selecting the proper database everything worked again. Thank you!
I am having this issue as well on one of my test machines. I tried it on
another Mac and was able to remove folders and build a .pkg just fine.
The computer having trouble with Composer is running 10.12.6 and the one
that worked us running 10.13.3.