Deploy failed with Exit code 2, Command failed exit code 1

Are you still experiencing this problem? If so I’d recommend you give this resource a read:

https://answers.netlify.com/t/support-guide-compiled-build-and-deploy-resources-start-here/5067
It is a compilation of all of our build and deploy resources. This is a good starting point.