PHP warning with composer on MacOS High Sierra: Failed to open stream
It sounds like you're running into this recent Composer autoloading bug: https://github.com/composer/composer/issues/6977

Chances are if you composer self-update, the issue will go away.