Deploy error on Netlify CMS Gatsby site (exit code 1: npm run build)

The site runs fine on localhost.

Error
Command failed with exit code 1: npm run build

netlify site name
admirable-hamster-c142d9

Environment variables:

Build log:

3:14:02 PM: Build ready to start
3:14:20 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
3:14:20 PM: build-image tag: v4.10.1
3:14:20 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390
3:14:20 PM: Building without cache
3:14:20 PM: Starting to prepare the repo for build
3:14:21 PM: No cached dependencies found. Cloning fresh repo
3:14:21 PM: git clone git@github.com:bernardost/spo01-dd01
3:14:23 PM: Preparing Git Reference refs/heads/master
3:14:24 PM: Parsing package.json dependencies
3:14:25 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus '/' in the Netlify UI
3:14:25 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'netlify/functions' versus '' in the Netlify UI
3:14:25 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'npm run build' versus '' in the Netlify UI
3:14:25 PM: Starting build script
3:14:25 PM: Installing dependencies
3:14:25 PM: Python version set to 2.7
3:14:25 PM: Downloading and installing node v14.15.0...
3:14:25 PM: Downloading https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz...
3:14:26 PM: Computing checksum with sha256sum
3:14:26 PM: Checksums matched!
3:14:28 PM: Now using node v14.15.0 (npm v6.14.8)
3:14:28 PM: Started restoring cached build plugins
3:14:28 PM: Finished restoring cached build plugins
3:14:28 PM: Attempting ruby version 2.7.2, read from environment
3:14:29 PM: Using ruby version 2.7.2
3:14:29 PM: Using PHP version 8.0
3:14:29 PM: No npm workspaces detected
3:14:29 PM: Started restoring cached node modules
3:14:29 PM: Finished restoring cached node modules
3:14:29 PM: Installing NPM modules using NPM version 6.14.8
3:14:30 PM: npm WARN using --force I sure hope you know what you are doing.
3:14:57 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
3:14:57 PM: > msgpackr-extract@2.0.2 install /opt/build/repo/node_modules/msgpackr-extract
3:14:57 PM: > node-gyp-build-optional-packages
3:14:57 PM: > lmdb@2.5.3 install /opt/build/repo/node_modules/lmdb
3:14:57 PM: > node-gyp-build-optional-packages
3:14:57 PM: > lmdb-store@1.6.14 install /opt/build/repo/node_modules/lmdb-store
3:14:57 PM: > node-gyp-build
3:14:58 PM: > sharp@0.29.3 install /opt/build/repo/node_modules/sharp
3:14:58 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
3:15:00 PM: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-linux-x64.tar.br
3:15:01 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-polyfill/node_modules/core-js
3:15:01 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:15:01 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
3:15:01 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
3:15:01 PM: > https://opencollective.com/core-js 
3:15:01 PM: > https://www.patreon.com/zloirock 
3:15:01 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
3:15:01 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
3:15:01 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:15:01 PM: > core-js@3.19.3 postinstall /opt/build/repo/node_modules/core-js
3:15:01 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:15:01 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
3:15:01 PM: The project needs your help! Please consider supporting of core-js:
3:15:01 PM: > https://opencollective.com/core-js 
3:15:01 PM: > https://patreon.com/zloirock 
3:15:01 PM: > https://paypal.me/zloirock 
3:15:01 PM: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz 
3:15:01 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
3:15:01 PM: > core-js-pure@3.19.3 postinstall /opt/build/repo/node_modules/core-js-pure
3:15:01 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:15:02 PM: > gatsby-telemetry@3.3.0 postinstall /opt/build/repo/node_modules/gatsby-telemetry
3:15:02 PM: > node src/postinstall.js || true
3:15:02 PM: > gatsby-cli@4.3.0 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
3:15:02 PM: > node scripts/postinstall.js
3:15:02 PM: > gatsby@4.3.0 postinstall /opt/build/repo/node_modules/gatsby
3:15:02 PM: > node scripts/postinstall.js
3:15:03 PM: npm WARN gatsby-starter-netlify-cms@1.1.3 No repository field.
3:15:03 PM: added 2147 packages from 2173 contributors and audited 2150 packages in 33.192s
3:15:04 PM: 299 packages are looking for funding
3:15:04 PM:   run `npm fund` for details
3:15:04 PM: found 74 vulnerabilities (23 moderate, 41 high, 10 critical)
3:15:04 PM:   run `npm audit fix` to fix them, or `npm audit` for details
3:15:04 PM: NPM modules installed
3:15:04 PM: Started restoring cached go cache
3:15:04 PM: Finished restoring cached go cache
3:15:04 PM: Installing Go version 1.17 (requested 1.17)
3:15:09 PM: unset GOOS;
3:15:09 PM: unset GOARCH;
3:15:09 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
3:15:09 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
3:15:09 PM: go version >&2;
3:15:09 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
3:15:09 PM: go version go1.17 linux/amd64
3:15:09 PM: Installing missing commands
3:15:09 PM: Verify run directory
3:15:10 PM: โ€‹
3:15:10 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:10 PM:   Netlify Build                                                 
3:15:10 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:10 PM: โ€‹
3:15:10 PM: โฏ Version
3:15:10 PM:   @netlify/build 27.16.1
3:15:10 PM: โ€‹
3:15:10 PM: โฏ Flags
3:15:10 PM:   baseRelDir: true
3:15:10 PM:   buildId: 6312019a9e0ce300916f9a2e
3:15:10 PM:   deployId: 6312019a9e0ce300916f9a30
3:15:10 PM: โ€‹
3:15:10 PM: โฏ Current directory
3:15:10 PM:   /opt/build/repo
3:15:10 PM: โ€‹
3:15:10 PM: โฏ Config file
3:15:10 PM:   /opt/build/repo/netlify.toml
3:15:10 PM: โ€‹
3:15:10 PM: โฏ Context
3:15:10 PM:   production
3:15:10 PM: โ€‹
3:15:10 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:10 PM:   1. build.command from netlify.toml                            
3:15:10 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:10 PM: โ€‹
3:15:10 PM: $ npm run build
3:15:10 PM: > gatsby-starter-netlify-cms@1.1.3 build /opt/build/repo
3:15:10 PM: > npm run clean && gatsby build
3:15:11 PM: > gatsby-starter-netlify-cms@1.1.3 clean /opt/build/repo
3:15:11 PM: > gatsby clean
3:15:11 PM: info Deleting .cache, public, /opt/build/repo/node_modules/.cache/babel-loader, /opt/build/repo/node_modules/.cache/terser-webpack-plugin
3:15:11 PM: info Successfully deleted directories
3:15:14 PM: success open and validate gatsby-configs, load plugins - 1.015s
3:15:14 PM: success onPreInit - 0.004s
3:15:14 PM: success initialize cache - 0.173s
3:15:14 PM: success copy gatsby files - 0.055s
3:15:15 PM: success Compiling Gatsby Functions - 0.229s
3:15:15 PM: success onPreBootstrap - 0.236s
3:15:15 PM: success createSchemaCustomization - 0.007s
3:15:16 PM: success Checking for changed pages - 0.000s
3:15:16 PM: success source and transform nodes - 1.385s
3:15:17 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
3:15:19 PM: success building schema - 2.623s
3:15:19 PM: error Your site's "gatsby-node.js" created a page with a component that doesn't exist.
3:15:19 PM: The path to the missing component is "/opt/build/repo/src/templates/insight-post.js"
3:15:19 PM: The page object passed to createPage:
3:15:19 PM: {
3:15:19 PM:     "path": "/insights/2022-08-12-insight-1-title/",
3:15:19 PM:     "tags": null,
3:15:19 PM:     "component": "/opt/build/repo/src/templates/insight-post.js",
3:15:19 PM:     "context": {
3:15:19 PM:         "id": "4eb67a7f-ea8e-521a-8208-8fe116b86926"
3:15:19 PM:     }
3:15:19 PM: }
3:15:19 PM: See the documentation for the "createPage" action โ€” https://www.gatsbyjs.com/docs/reference/config-files/actions#createPage
3:15:19 PM: not finished createPages - 0.398s
3:15:19 PM: npm ERR! code ELIFECYCLE
3:15:19 PM: npm ERR! errno 1
3:15:19 PM: npm ERR! gatsby-starter-netlify-cms@1.1.3 build: `npm run clean && gatsby build`
3:15:19 PM: npm ERR! Exit status 1
3:15:19 PM: npm ERR!
3:15:19 PM: npm ERR! Failed at the gatsby-starter-netlify-cms@1.1.3 build script.
3:15:19 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
3:15:20 PM: npm ERR! A complete log of this run can be found in:
3:15:20 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-09-02T13_15_19_956Z-debug.log
3:15:20 PM: โ€‹
3:15:20 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:20 PM:   "build.command" failed                                        
3:15:20 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:15:20 PM: โ€‹
3:15:20 PM:   Error message
3:15:20 PM:   Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
3:15:20 PM: โ€‹
3:15:20 PM:   Error location
3:15:20 PM:   In build.command from netlify.toml:
3:15:20 PM:   npm run build
3:15:20 PM: โ€‹
3:15:20 PM:   Resolved config
3:15:20 PM:   build:
3:15:20 PM:     command: npm run build
3:15:20 PM:     commandOrigin: config
3:15:20 PM:     environment:
3:15:20 PM:       - CI
3:15:20 PM:       - NODE_VERSION
3:15:20 PM:       - NPM_FLAGS
3:15:20 PM:       - YARN_VERSION
3:15:20 PM:       - YARN_FLAGS
3:15:20 PM:     publish: /opt/build/repo/public
3:15:20 PM:     publishOrigin: config
3:15:20 PM:   functionsDirectory: /opt/build/repo/netlify/functions
3:15:20 PM: Caching artifacts
3:15:20 PM: Started saving node modules
3:15:20 PM: Finished saving node modules
3:15:20 PM: Started saving build plugins
3:15:20 PM: Finished saving build plugins
3:15:20 PM: Started saving pip cache
3:15:20 PM: internal/modules/cjs/loader.js:883
3:15:20 PM:   throw err;
3:15:20 PM:   ^
3:15:20 PM: Error: Cannot find module './node-api-is-supported'
3:15:20 PM: Require stack:
3:15:20 PM: - /opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/services/initialize.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:15:20 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:15:20 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:15:20 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:15:20 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:15:20 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:15:20 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js:29:27)
3:15:20 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:15:20 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:15:20 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:15:20 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:15:20 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:15:20 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:15:20 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js:24:26)
3:15:20 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:15:20 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:15:20 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:15:20 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:15:20 PM:   code: 'MODULE_NOT_FOUND',
3:15:20 PM:   requireStack: [
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/initialize.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:15:20 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:15:20 PM:   ]
3:15:20 PM: }
3:15:21 PM: Finished saving pip cache
3:15:21 PM: Started saving emacs cask dependencies
3:15:21 PM: Finished saving emacs cask dependencies
3:15:21 PM: Started saving maven dependencies
3:15:21 PM: Finished saving maven dependencies
3:15:21 PM: Started saving boot dependencies
3:15:21 PM: Finished saving boot dependencies
3:15:21 PM: Started saving rust rustup cache
3:15:21 PM: Finished saving rust rustup cache
3:15:21 PM: Started saving go dependencies
3:15:21 PM: Finished saving go dependencies
3:15:22 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:15:22 PM: Creating deploy upload records
3:15:22 PM: Failing build: Failed to build site
3:15:22 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
3:15:22 PM: Finished processing build request in 1m2.298012196s

netlify.toml

[build]
  publish = "public"
  command = "npm run build"
[build.environment]
  NODE_VERSION = "14.15.0"
  YARN_VERSION = "1.22.4"
  YARN_FLAGS = "--no-ignore-optional"

Both the โ€œ2022-08-12-insight-1-titleโ€ page and the โ€œinsight-post.jsโ€ component were deleted a long time ago, so Iโ€™m not sure why this error is there.

Sorry, Iโ€™m not a developer so I may be missing something pretty obvious!

Thank you!

Changed an environment variable and tried again, also got an error.

NPM_FLAGS : --legacy-peer-deps
(before it was set to --force)

Build log part 1:

3:40:09 PM: Build ready to start
3:40:10 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
3:40:10 PM: build-image tag: v4.10.1
3:40:10 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390
3:40:10 PM: Building without cache
3:40:10 PM: Starting to prepare the repo for build
3:40:10 PM: No cached dependencies found. Cloning fresh repo
3:40:10 PM: git clone git@github.com:bernardost/spo01-dd01
3:40:13 PM: Preparing Git Reference refs/heads/master
3:40:13 PM: Parsing package.json dependencies
3:40:14 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus '/' in the Netlify UI
3:40:14 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'netlify/functions' versus '' in the Netlify UI
3:40:14 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'npm run build' versus '' in the Netlify UI
3:40:14 PM: Starting build script
3:40:14 PM: Installing dependencies
3:40:14 PM: Python version set to 2.7
3:40:15 PM: Downloading and installing node v14.15.0...
3:40:15 PM: Downloading https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz...
3:40:15 PM: Computing checksum with sha256sum
3:40:15 PM: Checksums matched!
3:40:17 PM: Now using node v14.15.0 (npm v6.14.8)
3:40:17 PM: Started restoring cached build plugins
3:40:17 PM: Finished restoring cached build plugins
3:40:17 PM: Attempting ruby version 2.7.2, read from environment
3:40:18 PM: Using ruby version 2.7.2
3:40:18 PM: Using PHP version 8.0
3:40:18 PM: No npm workspaces detected
3:40:18 PM: Started restoring cached node modules
3:40:18 PM: Finished restoring cached node modules
3:40:18 PM: Installing NPM modules using NPM version 6.14.8
3:40:44 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
3:40:44 PM: > msgpackr-extract@2.0.2 install /opt/build/repo/node_modules/msgpackr-extract
3:40:44 PM: > node-gyp-build-optional-packages
3:40:44 PM: > lmdb@2.5.3 install /opt/build/repo/node_modules/lmdb
3:40:44 PM: > node-gyp-build-optional-packages
3:40:44 PM: > lmdb-store@1.6.14 install /opt/build/repo/node_modules/lmdb-store
3:40:44 PM: > node-gyp-build
3:40:44 PM: > sharp@0.29.3 install /opt/build/repo/node_modules/sharp
3:40:44 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
3:40:45 PM: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-linux-x64.tar.br
3:40:46 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-polyfill/node_modules/core-js
3:40:46 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:40:46 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
3:40:46 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
3:40:46 PM: > https://opencollective.com/core-js 
3:40:46 PM: > https://www.patreon.com/zloirock 
3:40:46 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
3:40:46 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
3:40:46 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:40:46 PM: > core-js@3.19.3 postinstall /opt/build/repo/node_modules/core-js
3:40:46 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:40:46 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
3:40:46 PM: The project needs your help! Please consider supporting of core-js:
3:40:46 PM: > https://opencollective.com/core-js 
3:40:46 PM: > https://patreon.com/zloirock 
3:40:46 PM: > https://paypal.me/zloirock 
3:40:46 PM: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz 
3:40:46 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
3:40:46 PM: > core-js-pure@3.19.3 postinstall /opt/build/repo/node_modules/core-js-pure
3:40:46 PM: > node -e "try{require('./postinstall')}catch(e){}"
3:40:47 PM: > gatsby-telemetry@3.3.0 postinstall /opt/build/repo/node_modules/gatsby-telemetry
3:40:47 PM: > node src/postinstall.js || true
3:40:47 PM: > gatsby-cli@4.3.0 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
3:40:47 PM: > node scripts/postinstall.js
3:40:47 PM: > gatsby@4.3.0 postinstall /opt/build/repo/node_modules/gatsby
3:40:47 PM: > node scripts/postinstall.js
3:40:48 PM: npm WARN gatsby-starter-netlify-cms@1.1.3 No repository field.
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-win32-x64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-win32-x64):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-win32-x64@2.0.2: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm64@2.0.2: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-linux-arm@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-linux-arm):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-linux-arm@2.0.2: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-x64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-x64@2.0.2: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2 (node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
3:40:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-win32-x64@2.5.3 (node_modules/@lmdb/lmdb-win32-x64):
3:40:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-win32-x64@2.5.3: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
3:40:49 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm64@2.5.3 (node_modules/@lmdb/lmdb-linux-arm64):
3:40:49 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm64@2.5.3: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
3:40:49 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-linux-arm@2.5.3 (node_modules/@lmdb/lmdb-linux-arm):
3:40:49 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-linux-arm@2.5.3: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
3:40:49 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-x64@2.5.3 (node_modules/@lmdb/lmdb-darwin-x64):
3:40:49 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-x64@2.5.3: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
3:40:49 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @lmdb/lmdb-darwin-arm64@2.5.3 (node_modules/@lmdb/lmdb-darwin-arm64):
3:40:49 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lmdb/lmdb-darwin-arm64@2.5.3: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
3:40:49 PM: added 2136 packages from 2169 contributors and audited 2150 packages in 29.961s
3:40:50 PM: 299 packages are looking for funding
3:40:50 PM:   run `npm fund` for details
3:40:50 PM: found 74 vulnerabilities (23 moderate, 41 high, 10 critical)
3:40:50 PM:   run `npm audit fix` to fix them, or `npm audit` for details
3:40:50 PM: NPM modules installed
3:40:50 PM: Started restoring cached go cache
3:40:50 PM: Finished restoring cached go cache
3:40:50 PM: Installing Go version 1.17 (requested 1.17)
3:40:55 PM: unset GOOS;
3:40:55 PM: unset GOARCH;
3:40:55 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
3:40:55 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
3:40:55 PM: go version >&2;
3:40:55 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
3:40:55 PM: go version go1.17 linux/amd64
3:40:55 PM: Installing missing commands
3:40:55 PM: Verify run directory

3:40:56 PM: โ€‹
3:40:56 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:40:56 PM:   Netlify Build                                                 
3:40:56 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:40:56 PM: โ€‹
3:40:56 PM: โฏ Version
3:40:56 PM:   @netlify/build 27.16.1
3:40:56 PM: โ€‹
3:40:56 PM: โฏ Flags
3:40:56 PM:   baseRelDir: true
3:40:56 PM:   buildId: 631207b80ac3780550dcd060
3:40:56 PM:   deployId: 631207b80ac3780550dcd062
3:40:56 PM: โ€‹
3:40:56 PM: โฏ Current directory
3:40:56 PM:   /opt/build/repo
3:40:56 PM: โ€‹
3:40:56 PM: โฏ Config file
3:40:56 PM:   /opt/build/repo/netlify.toml
3:40:56 PM: โ€‹
3:40:56 PM: โฏ Context
3:40:56 PM:   production
3:40:56 PM: โ€‹
3:40:56 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:40:56 PM:   1. build.command from netlify.toml                            
3:40:56 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:40:56 PM: โ€‹
3:40:56 PM: $ npm run build
3:40:57 PM: > gatsby-starter-netlify-cms@1.1.3 build /opt/build/repo
3:40:57 PM: > npm run clean && gatsby build
3:40:57 PM: > gatsby-starter-netlify-cms@1.1.3 clean /opt/build/repo
3:40:57 PM: > gatsby clean
3:40:57 PM: info Deleting .cache, public, /opt/build/repo/node_modules/.cache/babel-loader, /opt/build/repo/node_modules/.cache/terser-webpack-plugin
3:40:57 PM: info Successfully deleted directories
3:41:00 PM: success open and validate gatsby-configs, load plugins - 0.984s
3:41:00 PM: success onPreInit - 0.004s
3:41:00 PM: success initialize cache - 0.088s
3:41:00 PM: success copy gatsby files - 0.048s
3:41:00 PM: success Compiling Gatsby Functions - 0.195s
3:41:00 PM: success onPreBootstrap - 0.201s
3:41:00 PM: success createSchemaCustomization - 0.062s
3:41:02 PM: success Checking for changed pages - 0.000s
3:41:02 PM: success source and transform nodes - 1.306s
3:41:02 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
3:41:04 PM: success building schema - 2.301s
3:41:04 PM: error Your site's "gatsby-node.js" created a page with a component that doesn't exist.
3:41:04 PM: The path to the missing component is "/opt/build/repo/src/templates/insight-post.js"
3:41:04 PM: The page object passed to createPage:
3:41:04 PM: {
3:41:04 PM:     "path": "/insights/2022-08-12-insight-1-title/",
3:41:04 PM:     "tags": null,
3:41:04 PM:     "component": "/opt/build/repo/src/templates/insight-post.js",
3:41:04 PM:     "context": {
3:41:04 PM:         "id": "4eb67a7f-ea8e-521a-8208-8fe116b86926"
3:41:04 PM:     }
3:41:04 PM: }
3:41:04 PM: See the documentation for the "createPage" action โ€” https://www.gatsbyjs.com/docs/reference/config-files/actions#createPage
3:41:04 PM: not finished createPages - 0.309s
3:41:05 PM: npm ERR! code ELIFECYCLE
3:41:05 PM: npm ERR! errno 1
3:41:05 PM: npm ERR! gatsby-starter-netlify-cms@1.1.3 build: `npm run clean && gatsby build`
3:41:05 PM: npm ERR! Exit status 1
3:41:05 PM: npm ERR!
3:41:05 PM: npm ERR! Failed at the gatsby-starter-netlify-cms@1.1.3 build script.
3:41:05 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
3:41:05 PM: npm ERR! A complete log of this run can be found in:
3:41:05 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-09-02T13_41_05_071Z-debug.log
3:41:05 PM: โ€‹
3:41:05 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:41:05 PM:   "build.command" failed                                        
3:41:05 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
3:41:05 PM: โ€‹
3:41:05 PM:   Error message
3:41:05 PM:   Command failed with exit code 1: npm run build
3:41:05 PM: โ€‹
3:41:05 PM:   Error location
3:41:05 PM:   In build.command from netlify.toml:
3:41:05 PM:   npm run build
3:41:05 PM: โ€‹
3:41:05 PM:   Resolved config
3:41:05 PM:   build:
3:41:05 PM:     command: npm run build
3:41:05 PM:     commandOrigin: config
3:41:05 PM:     environment:
3:41:05 PM:       - CI
3:41:05 PM:       - NODE_VERSION
3:41:05 PM:       - NPM_FLAGS
3:41:05 PM:       - YARN_VERSION
3:41:05 PM:       - YARN_FLAGS
3:41:05 PM:     publish: /opt/build/repo/public
3:41:05 PM:     publishOrigin: config
3:41:05 PM:   functionsDirectory: /opt/build/repo/netlify/functions
3:41:05 PM: Caching artifacts
3:41:05 PM: Started saving node modules
3:41:06 PM: Creating deploy upload records
3:41:05 PM: Finished saving node modules
3:41:05 PM: Started saving build plugins
3:41:05 PM: Finished saving build plugins
3:41:05 PM: Started saving pip cache

This sounds like something related to caching in the Netlify build. Can you try this for me?

If that doesnโ€™t solve it, sharing the Git repo for issues like this is always helpful :slight_smile:

Kyle.

1 Like

Build log part 2

3:41:07 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module './helpers/bind'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/utils.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/axios.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/get-latest-apis.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/initialize.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/axios/lib/utils.js:3:12)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/axios/lib/axios.js:3:13)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/utils.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/axios.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/get-latest-apis.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/initialize.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module 'is-binary-path'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/chokidar/lib/nodefs-handler.js
3:41:05 PM: - /opt/build/repo/node_modules/chokidar/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/chokidar/lib/nodefs-handler.js:6:22)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/chokidar/index.js:14:23)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/chokidar/lib/nodefs-handler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/chokidar/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module 'follow-redirects'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/adapters/http.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/defaults.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/core/transformData.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/core/dispatchRequest.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/core/Axios.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/lib/axios.js
3:41:05 PM: - /opt/build/repo/node_modules/axios/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/get-latest-apis.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/initialize.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/axios/lib/adapters/http.js:9:18)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at getDefaultAdapter (/opt/build/repo/node_modules/axios/lib/defaults.js:24:15)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/axios/lib/defaults.js:52:12)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/adapters/http.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/defaults.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/core/transformData.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/core/dispatchRequest.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/core/Axios.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/lib/axios.js',
3:41:05 PM:     '/opt/build/repo/node_modules/axios/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/get-latest-apis.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/initialize.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module './generators'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/@babel/generator/lib/printer.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/generator/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/context.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/file-parser.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/generator/lib/printer.js:14:26)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/generator/lib/index.js:11:16)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/generator/lib/printer.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/generator/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/context.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module './base'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/@babel/generator/lib/generators/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/generator/lib/printer.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/generator/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/context.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/file-parser.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/generator/lib/generators/index.js:111:13)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/generator/lib/printer.js:14:26)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/generator/lib/generators/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/generator/lib/printer.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/generator/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/context.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module './visitors'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/file-parser.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/traverse/lib/index.js:28:16)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js:8:40)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module './node-api-is-supported'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/initialize.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js:29:27)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js:24:26)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-plugin-utils/dist/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/load.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-plugins/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/initialize.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module '@babel/helper-hoist-variables'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/context.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/file-parser.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js:25:29)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js:28:28)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/context.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: internal/modules/cjs/loader.js:883
3:41:05 PM:   throw err;
3:41:05 PM:   ^
3:41:05 PM: Error: Cannot find module '@babel/helper-hoist-variables'
3:41:05 PM: Require stack:
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/path/index.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/context.js
3:41:05 PM: - /opt/build/repo/node_modules/@babel/traverse/lib/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/file-parser.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/services/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js
3:41:05 PM: - /opt/build/repo/node_modules/gatsby-worker/dist/child.js
3:41:05 PM:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js:25:29)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
3:41:05 PM:     at Module.require (internal/modules/cjs/loader.js:952:19)
3:41:05 PM:     at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
3:41:05 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js:28:28)
3:41:05 PM:     at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
3:41:05 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
3:41:05 PM:     at Module.load (internal/modules/cjs/loader.js:928:32)
3:41:05 PM:     at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
3:41:05 PM:   code: 'MODULE_NOT_FOUND',
3:41:05 PM:   requireStack: [
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/replacement.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/path/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/context.js',
3:41:05 PM:     '/opt/build/repo/node_modules/@babel/traverse/lib/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/file-parser.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-compiler.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/query/query-watcher.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/extract-queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/services/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/queries.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby/dist/utils/worker/child/index.js',
3:41:05 PM:     '/opt/build/repo/node_modules/gatsby-worker/dist/child.js'
3:41:05 PM:   ]
3:41:05 PM: }
3:41:05 PM: Finished saving pip cache
3:41:05 PM: Started saving emacs cask dependencies
3:41:05 PM: Finished saving emacs cask dependencies
3:41:05 PM: Started saving maven dependencies
3:41:05 PM: Finished saving maven dependencies
3:41:05 PM: Started saving boot dependencies
3:41:05 PM: Finished saving boot dependencies
3:41:05 PM: Started saving rust rustup cache
3:41:05 PM: Finished saving rust rustup cache
3:41:05 PM: Started saving go dependencies
3:41:05 PM: Finished saving go dependencies
3:41:06 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:41:07 PM: Failing build: Failed to build site
3:41:07 PM: Finished processing build request in 56.868849816s

Thank you for the reply! Iโ€™ve tried clearing the cache but it also didnโ€™t work.

Github repo: https://github.com/bernardost/spo01-dd01

1 Like

I had a quick look and the issue seems to be that whilst you have deleted /opt/build/repo/src/templates/insight-post.js, you are still referencing it in several pages frontmatter. Gatsby is searching for the templateKey: insight-post and thus failing the build.

To fix:
Restore the insight-post template or delete all pages that require it as their template (all files in the insights directory)

Not sure why this is only occurring on Netlify build though.

Did you try building it locally as well or have you only ran the site in development?

Kyle.

Thanks for looking at the code!

I searched for insight-post and any insights directory and got no matches.

No, I havenโ€™t tried to build it locally I guess. Iโ€™ve been using gatsby develop only.

Under the path [YOUR-REPO]/src/pages/insights there are two markdown filesโ€ฆ each requesting insight-post as their templateKey. Is this different to your local machine?

Please run gatsby to build the site locally. Theoretically the build should fail as it does in Netlify.

Kyle.

Yes, as a matter of fact, github is different from my local directory. Probably thatโ€™s the issue right? Sorry for being so clueless!

Ran gatsby build locally and it worked fine.

Log:

success compile gatsby files - 0.247s
success load gatsby config - 0.017s
success load plugins - 0.702s
warn gatsby-plugin-react-helmet: Gatsby now has built-in support for modyfing the document head. Learn more at https://gatsby.dev/gatsby-head
success onPreInit - 0.005s
success initialize cache - 0.024s
success copy gatsby files - 0.125s
success Compiling Gatsby Functions - 0.159s
success onPreBootstrap - 0.170s
success createSchemaCustomization - 0.027s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.258s
info Writing GraphQL type definitions to /Users/bernardopressergemic/Documents/htdocs/Gemic/spo02-dd01/spo01-dd01/.cache/schema.gql
success building schema - 0.275s
success createPages - 0.036s
success createPagesStatefully - 0.149s
info Total nodes: 182, SitePage nodes: 28 (use --verbose for breakdown)
success Checking for changed pages - 0.003s
success Cleaning up stale page-data - 0.020s
success onPreExtractQueries - 0.000s
success extract queries from components - 1.051s
warn The GraphQL query in the non-page component "/Users/bernardopressergemic/Documents/htdocs/Gemic/spo02-dd01/spo01-dd01/src/templates/indexPageTemplate.js" will not be run.
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.

If the failing component(s) is a regular component and not intended to be a page
component, you generally want to use a <StaticQuery> (https://gatsbyjs.com/docs/static-query)
instead of exporting a page query.

If you're more experienced with GraphQL, you can also export GraphQL
fragments from components and compose the fragments in the Page component
query and pass data down into the child component โ€” https://graphql.org/learn/queries/#fragments
success write out redirect data - 0.015s
success onPostBootstrap - 0.009s
info bootstrap finished - 5.246s
success write out requires - 0.059s
success Building production JavaScript and CSS bundles - 24.373s

gatsby-plugin-purgecss:
 Previous CSS Size: 229.64 KB
 New CSS Size: 229.64 KB (-0.00%)
 Removed ~0.00 KB of CSS
success Building HTML renderer - 7.234s
success Execute page configs - 0.023s
success Caching Webpack compilations - 0.001s
success run queries in workers - 0.319s - 23/23 72.00/s
success Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 1.409s - 18/18 12.78/s
success Merge worker state - 0.002s
success Rewriting compilation hashes - 0.002s
success Writing page-data.json files to public directory - 0.122s - 23/23 188.86/s
success Building static HTML for pages - 1.955s - 27/27 13.81/s
success Delete previous page data - 0.001s
info [gatsby-plugin-netlify] Creating SSR/DSG redirects...
info [gatsby-plugin-netlify] Created 0 SSR/DSG redirects...
success onPostBuild - 0.021s
info Done building in 41.698154417 sec


Pages

โ”Œ src/templates/index-page.js
โ”‚ โ””   /
โ”œ src/templates/theme-post.js
โ”‚ โ””   /themes/2022-09-01-map-templatekey-theme-post-themetitle-immersing-myself-in-music-themeimage-img-screen-shot-2022-08-19-at-2-32-24-pm-png-themeintro-opportunities-to-help-japanese-music-listener
    s-fully-immerse-themselves-in-their-favorite-music/
โ”œ src/templates/scan-post.js
โ”‚ โ”œ   /scan/2022-08-12-scan-data-3/
โ”‚ โ””   /scan/2022-08-12-scan-data-title-1/
โ”œ src/templates/product-page.js
โ”‚ โ””   /products/
โ”œ src/templates/blog-post.js
โ”‚ โ”œ   /blog/2016-12-17-making-sense-of-the-scaas-new-flavor-wheel/
โ”‚ โ””   ...3 more pages available
โ”œ src/templates/about-page.js
โ”‚ โ””   /about/
โ”œ src/templates/tags.js
โ”‚ โ”œ   /tags/scandatatag-1/
โ”‚ โ””   ...6 more pages available
โ”œ src/pages/404.js
โ”‚ โ”œ   /404/
โ”‚ โ””   /404.html
โ”œ src/pages/blog/index.js
โ”‚ โ””   /blog/
โ”œ src/pages/contact/examples.js
โ”‚ โ””   /contact/examples/
โ”œ src/pages/contact/file-upload.js
โ”‚ โ””   /contact/file-upload/
โ”œ src/pages/contact/index.js
โ”‚ โ””   /contact/
โ”œ src/pages/contact/thanks.js
โ”‚ โ””   /contact/thanks/
โ”œ src/pages/scan/index.js
โ”‚ โ””   /scan/
โ”œ src/pages/tags/index.js
โ”‚ โ””   /tags/
โ”” src/pages/themes/index.js
  โ””   /themes/

  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚                                                                โ”‚
  โ”‚   (SSG) Generated at build time                                โ”‚
  โ”‚ D (DSG) Deferred static generation - page generated at runtime โ”‚
  โ”‚ โˆž (SSR) Server-side renders at runtime (uses getServerData)    โ”‚
  โ”‚ ฮป (Function) Gatsby function                                   โ”‚
  โ”‚                                                                โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Yes, if Netlify is fetching the repo from Github to deploy then that is why you are seeing different results locally. Iโ€™d suggest pulling your repo and making those changes that I suggest earlier :slight_smile:

:thinking: should I pull from GitHub and fix things? I thought I should push my local files to GitHub, no?

If your local files reflect the relevant fixes needed then yes Iโ€™d push to Git and deploy

It worked! Thank you so much!

1 Like

No worries, glad everything is back to normal :slightly_smiling_face:

1 Like