How does one debug a netlify build issue?

I check in my code to GitHub, triggers netlify to build\deploy. But it fails, and the logs don’t seem to give me much…

This is where it kinda tanks. All works\builds on the Mac, netlify cli…

10:39:49 AM: Started restoring cached node modules

10:39:49 AM: Finished restoring cached node modules

10:39:50 AM: Installing NPM modules using NPM version 6.13.4

10:40:13 AM: npm

10:40:13 AM: WARN deprecated

10:40:13 AM: core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

10:41:01 AM: npm WARN

10:41:01 AM: rm not removing /opt/build/repo/node_modules/.bin/uglifyjs as it wasn’t installed by /opt/build/repo/node_modules/uglify-js

10:41:01 AM: npm WARN rm not removing /opt/build/repo/node_modules/.bin/semver as it wasn’t installed by /opt/build/repo/node_modules/semver

10:41:01 AM: npm WARN

10:41:01 AM: rm not removing /opt/build/repo/node_modules/.bin/regjsparser as it wasn’t installed by /opt/build/repo/node_modules/regjsparser

10:41:01 AM: npm WARN rm not removing /opt/build/repo/node_modules/.bin/pbjs as it wasn’t installed by /opt/build/repo/node_modules/protobufjs

10:41:01 AM: npm WARN

10:41:01 AM: rm not removing /opt/build/repo/node_modules/.bin/nopt as it wasn’t installed by /opt/build/repo/node_modules/nopt

10:41:01 AM: npm WARN rm not removing /opt/build/repo/node_modules/.bin/json5 as it wasn’t installed by /opt/build/repo/node_modules/json5

10:41:01 AM: npm WARN

10:41:01 AM: rm not removing /opt/build/repo/node_modules/.bin/jsesc as it wasn’t installed by /opt/build/repo/node_modules/jsesc

10:41:01 AM: npm

10:41:01 AM: WARN rm not removing /opt/build/repo/node_modules/.bin/esparse as it wasn’t installed by /opt/build/repo/node_modules/esprima

10:41:01 AM: npm WARN rm

10:41:01 AM: not removing /opt/build/repo/node_modules/.bin/esvalidate as it wasn’t installed by /opt/build/repo/node_modules/esprima

10:41:01 AM: npm WARN rm not removing /opt/build/repo/node_modules/.bin/cssesc as it wasn’t installed by /opt/build/repo/node_modules/cssesc

10:41:12 AM: > grpc@1.24.2 install /opt/build/repo/node_modules/grpc

10:41:12 AM: > node-pre-gyp install --fallback-to-build --library=static_library

10:41:12 AM: sh: 1: node-pre-gyp: not found

10:41:14 AM: failed during stage ‘building site’: Build script returned non-zero exit code: 1

10:41:14 AM: npm WARN bootstrap@4.4.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.

10:41:15 AM: Shutting down logging, 25 messages pending

hi there,

we had a temporary issue this morning that affected some of our services - this may be related. Are you still seeing this problem?

If not, this post is a good general guide to debugging:

Let us know how it goes!