Buil command failed [Error: std::bad_alloc]

Hi! I’m deploying for the first time and an error is happening during the build stage. Can you help me out? Here is the log:

npm run build works fine locally!

Hi, before we can help you, we need a little more information on the issues you are facing.

First, have you looked through this resource? It is a compilation of all of our build and deploy resources. This is a good starting point.

If you have worked through those guides and are still encountering issues please share the following information:

  • the name of your build instance: “example-jones.netlify.com
  • what you have already tried
  • any error messages you have received in your terminal window or in the developer console