Vuejs build failed "Build script returned non-zero exit code: 1" (CXX (target))

  • Netlify’s domain name:

The project successfully builds on my local PC but here on netlify i see some bunch of random logs like CXX(target)… and at last it says “Build script returned non-zero exit code: 1”.

here’s my complete build log:

Hmm, that seems to be a problem in building node-gyp. I haven’t seen that before so it may be related to just the version you are running - do you require a specific version? This thread talks about some other potential solutions to similar problems: