To see in the log why your build is failing? This will give us more information about the error you are experiencing and how to solve it. There is more information about this in the thread I am linking below:
Additionally, here is more information from the npm docs you can implement: