Gatsby site deployment failure - No such file or directory

Hey folks,

I have a Gatsby blog deployed to Netlify. My deployments were running successfully until today, when the deployment failed for some reason.

Below is the deploy log:

4:30:05 PM: build-image version: d7b3813f01c06610bc1723ff1b22446513ee7941 (focal)
4:30:05 PM: build-image tag: v4.14.3
4:30:05 PM: buildbot version: be0925a1b4e8f8d2c5a767f3e0decf8856cad273
4:30:05 PM: Building without cache
4:30:05 PM: Starting to prepare the repo for build
4:30:05 PM: No cached dependencies found. Cloning fresh repo
4:30:05 PM: git clone https://github.com/sundaray/hemanta.io
4:30:07 PM: Preparing Git Reference refs/heads/master
4:30:08 PM: Parsing package.json dependencies
4:30:09 PM: Starting build script
4:30:09 PM: Installing dependencies
4:30:09 PM: Python version set to 2.7
4:30:09 PM: Downloading and installing node v12.18.0...
4:30:10 PM: Downloading https://nodejs.org/dist/v12.18.0/node-v12.18.0-linux-x64.tar.xz...
4:30:10 PM: Computing checksum with sha256sum
4:30:10 PM: Checksums matched!
4:30:11 PM: Now using node v12.18.0 (npm v6.14.4)
4:30:11 PM: Started restoring cached build plugins
4:30:11 PM: Finished restoring cached build plugins
4:30:11 PM: Attempting ruby version 2.7.1, read from environment
4:30:12 PM: Required ruby-2.7.1 is not installed - installing.
4:30:12 PM: Searching for binary rubies, this might take some time.
4:30:12 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2
4:30:12 PM: Checking requirements for ubuntu.
4:30:12 PM: Requirements installation successful.
4:30:12 PM: ruby-2.7.1 - #configure
4:30:12 PM: ruby-2.7.1 - #download
4:30:13 PM: ruby-2.7.1 - #validate archive
4:30:16 PM: ruby-2.7.1 - #extract
4:30:18 PM: ruby-2.7.1 - #validate binary
4:30:18 PM: ruby-2.7.1 - #setup
4:30:18 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
4:30:18 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
4:30:19 PM: ruby-2.7.1 - #generating global wrappers........
4:30:19 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
4:30:19 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
4:30:19 PM: ruby-2.7.1 - #generating default wrappers........
4:30:19 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
4:30:19 PM: Using ruby version 2.7.1
4:30:20 PM: Using PHP version 8.0
4:30:20 PM: No npm workspaces detected
4:30:20 PM: Started restoring cached node modules
4:30:20 PM: Finished restoring cached node modules
4:30:20 PM: Installing NPM modules using NPM version 6.14.4
4:30:25 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!npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-router-dom-81b611a4/LICENSE'
4:30:25 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-router-dom-81b611a4/BrowserRouter.js'
4:30:25 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/tailwindcss-bd18efcd/lib/css/preflight.css'
4:30:25 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/tailwindcss-bd18efcd/types/generated/colors.d.ts'
4:30:25 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/tailwindcss-bd18efcd/types/generated/corePluginList.d.ts'
4:30:25 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/tailwindcss-bd18efcd/types/generated/default-theme.d.ts'
4:30:26 PM: npm ERR! Error while executing:
4:30:26 PM: npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/robb0wen/synthwave-vscode.git
4:30:26 PM: npm ERR!
4:30:26 PM: npm ERR! Host key verification failed.
4:30:26 PM: npm ERR! fatal: Could not read from remote repository.
4:30:26 PM: npm ERR!
4:30:26 PM: npm ERR! Please make sure you have the correct access rights
4:30:26 PM: npm ERR! and the repository exists.
4:30:26 PM: npm ERR!
4:30:26 PM: Creating deploy upload records
4:30:26 PM: npm ERR! exited with error code: 128
4:30:26 PM: npm ERR! A complete log of this run can be found in:
4:30:26 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-11-13T11_00_26_739Z-debug.log
4:30:26 PM: Error during NPM install
4:30:26 PM: Build was terminated: Build script returned non-zero exit code: 1
4:30:27 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
4:30:27 PM: Failing build: Failed to build site
4:30:27 PM: Finished processing build request in 21.864690225s

I did some Google research but could not figure out the problem. What do I need to do to resolve the errors?

It appears to be a VSCode theme? Do you happen to have it in your package.json? I wonder why npm is trying to do anything with it.

Yes, I have it in my package.json file.

{
  "name": "gatsby-starter-hello-world",
  "private": true,
  "description": "A simplified bare-bones starter for Gatsby",
  "version": "0.1.0",
  "license": "0BSD",
  "scripts": {
    "build": "gatsby build",
    "develop": "gatsby develop",
    "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
    "start": "npm run develop",
    "serve": "gatsby serve",
    "clean": "gatsby clean",
    "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
  },
  "dependencies": {
    "@emotion/react": "^11.4.0",
    "@formkit/auto-animate": "^1.0.0-beta.1",
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-solid-svg-icons": "^5.15.3",
    "@fortawesome/react-fontawesome": "^0.1.14",
    "@heroicons/react": "^1.0.6",
    "@reduxjs/toolkit": "^1.6.0",
    "bootstrap": "^5.0.1",
    "disqus-react": "^1.0.11",
    "flag-icons": "^6.6.6",
    "formik": "^2.2.9",
    "framer-motion": "^4.1.17",
    "gatsby": "^3.4.1",
    "gatsby-awesome-pagination": "^0.3.8",
    "gatsby-paginate": "^1.1.1",
    "gatsby-plugin-emotion": "^6.4.0",
    "gatsby-plugin-google-gtag": "^3.8.0",
    "gatsby-plugin-react-helmet": "^4.6.0",
    "gatsby-plugin-sharp": "^3.5.0",
    "gatsby-plugin-typography": "^3.4.0",
    "gatsby-remark-autolink-headers": "^4.2.0",
    "gatsby-remark-code-buttons": "^2.0.7",
    "gatsby-remark-images": "^5.2.0",
    "gatsby-remark-katex": "^6.17.0",
    "gatsby-remark-prismjs": "^5.2.0",
    "gatsby-remark-reading-time": "^1.1.0",
    "gatsby-remark-table-of-contents": "^1.0.0",
    "gatsby-remark-vscode": "^3.2.1",
    "gatsby-source-filesystem": "^3.4.0",
    "gatsby-transformer-remark": "^4.11.0",
    "gsap": "^3.6.1",
    "katex": "^0.16.0",
    "lodash": "^4.17.21",
    "prism-themes": "^1.7.0",
    "prismjs": "^1.23.0",
    "prop-types": "^15.7.2",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-helmet": "^6.1.0",
    "react-hook-form": "^7.39.1",
    "react-redux": "^7.2.4",
    "react-router-dom": "^5.2.0",
    "react-typography": "^0.16.20",
    "synthwave-vscode": "github:robb0wen/synthwave-vscode",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "autoprefixer": "^10.4.8",
    "gatsby-plugin-postcss": "^5.20.0",
    "gatsby-remark-code-titles": "^1.1.0",
    "postcss": "^8.4.16",
    "prettier": "2.2.1",
    "tailwindcss": "^3.1.8"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
  },
  "bugs": {
    "url": "https://github.com/gatsbyjs/gatsby/issues"
  }
}

Then the question is, why? Is that a dependency you’re using in your project? The project’s readme doesn’t seem to mention anything with npm: GitHub - robb0wen/synthwave-vscode: Synthwave inspired colour theme for VS Code πŸŒ…πŸ•Ά

I use the theme for my blog’s code snippets.

The following is my gatsby-config.js file.

module.exports = {
  siteMetadata: {
    title: "Hemanta Sundaray - Full-stack JavaScript & DevOps Engineer",
  },
  plugins: [
    "gatsby-plugin-postcss",
    {
      resolve: `gatsby-plugin-google-gtag`,
      options: {
        trackingIds: ["UA-180342439-1"],
      },
    },
    `gatsby-plugin-react-helmet`,
    `gatsby-plugin-sharp`,
    {
      resolve: "gatsby-source-filesystem",
      options: {
        name: "src",
        path: `${__dirname}/src`,
      },
    },
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          `gatsby-remark-reading-time`,
          {
            resolve: `gatsby-remark-code-titles`,
          },
          {
            resolve: `gatsby-remark-vscode`,
            options: {
              theme: `SynthWave '84`,
              extensions: ["synthwave-vscode"],
              inlineCode: {
                marker: ".",
              },
            },
          },
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 800,
              quality: 100,
            },
          },
          {
            resolve: `gatsby-remark-table-of-contents`,
            options: {
              exclude: "Table of Contents",
              fromHeading: 2,
              toHeading: 4,
              className: "table-of-contents",
            },
          },
          `gatsby-remark-autolink-headers`,
        ],
      },
    },
  ],
}

I can see that the synthwave-vscode is there.

I created my blog using Gatsby a long time ago. So, I don’t remember anything about this theme.

If I uninstall the theme(synthwave–vscode), then, my blog posts are not showing. I am really confused. Also, this theme in not in the npm registry. Then, how did I install it?

More importantly, everything was working fine till yesterday. I got the deployment failure today.

What do you think I should do?

My blog is: hemanta.io

I just tried to run npm i robb0wen/synthwave-vscode and it added it the same way to my package.json like it’s shown in yours. So maybe you’re doing it right.

Try removing your package-lock.json from the repo and try running a deploy by clearing cache from the UI.

I did as you said, but the deployment failed.

Here is the log:

10:21:58 PM: build-image version: d7b3813f01c06610bc1723ff1b22446513ee7941 (focal)
10:21:58 PM: build-image tag: v4.14.3
10:21:58 PM: buildbot version: be0925a1b4e8f8d2c5a767f3e0decf8856cad273
10:21:58 PM: Fetching cached dependencies
10:21:58 PM: Failed to fetch cache, continuing with build
10:21:58 PM: Starting to prepare the repo for build
10:21:58 PM: No cached dependencies found. Cloning fresh repo
10:21:58 PM: git clone https://github.com/sundaray/hemanta.io
10:22:00 PM: Preparing Git Reference refs/heads/master
10:22:01 PM: Parsing package.json dependencies
10:22:02 PM: Starting build script
10:22:02 PM: Installing dependencies
10:22:02 PM: Python version set to 2.7
10:22:03 PM: Downloading and installing node v12.18.0...
10:22:03 PM: Downloading https://nodejs.org/dist/v12.18.0/node-v12.18.0-linux-x64.tar.xz...
10:22:04 PM: Computing checksum with sha256sum
10:22:04 PM: Checksums matched!
10:22:05 PM: Now using node v12.18.0 (npm v6.14.4)
10:22:05 PM: Started restoring cached build plugins
10:22:05 PM: Finished restoring cached build plugins
10:22:05 PM: Attempting ruby version 2.7.1, read from environment
10:22:06 PM: Required ruby-2.7.1 is not installed - installing.
10:22:06 PM: Searching for binary rubies, this might take some time.
10:22:06 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2
10:22:06 PM: Checking requirements for ubuntu.
10:22:06 PM: Requirements installation successful.
10:22:06 PM: ruby-2.7.1 - #configure
10:22:06 PM: ruby-2.7.1 - #download
10:22:06 PM: ruby-2.7.1 - #validate archive
10:22:10 PM: ruby-2.7.1 - #extract
10:22:11 PM: ruby-2.7.1 - #validate binary
10:22:12 PM: ruby-2.7.1 - #setup
10:22:12 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
10:22:12 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
10:22:12 PM: ruby-2.7.1 - #generating global wrappers........
10:22:12 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
10:22:12 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
10:22:13 PM: ruby-2.7.1 - #generating default wrappers........
10:22:13 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
10:22:13 PM: Using ruby version 2.7.1
10:22:13 PM: Using PHP version 8.0
10:22:14 PM: No npm workspaces detected
10:22:14 PM: Started restoring cached node modules
10:22:14 PM: Finished restoring cached node modules
10:22:14 PM: Installing NPM modules using NPM version 6.14.4
10:22:17 PM: npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
10:22:17 PM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
10:22:20 PM: npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
10:22:22 PM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
10:22:26 PM: npm WARN deprecated gatsby-recipes@0.25.0: gatsby-recipes has been removed from gatsby/gatsby-cli >=4.5.0. Update to gatsby@latest/gatsby-cli@latest to use versions without gatsby-recipes. This package will no longer receive updates.
10:22:27 PM: npm WARN deprecated async-cache@1.1.0: No longer maintained. Use [lru-cache](http://npm.im/lru-cache) version 7.6 or higher, and provide an asynchronous `fetchMethod` option.
10:22:28 PM: npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
10:22:31 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
10:22:32 PM: npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
10:22:36 PM: npm WARN deprecated subscriptions-transport-ws@0.9.19: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
10:22:37 PM: npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
10:22:37 PM: npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
10:22:37 PM: npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
10:22:38 PM: npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
10:22:39 PM: npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
10:22:39 PM: npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
10:22:39 PM: npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
10:36:01 PM: > sharp@0.29.3 install /opt/build/repo/node_modules/sharp
10:36:01 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
10:36:02 PM: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-linux-x64.tar.br
10:36:03 PM: > @fortawesome/fontawesome-common-types@0.2.36 postinstall /opt/build/repo/node_modules/@fortawesome/fontawesome-common-types
10:36:03 PM: > node attribution.js
10:36:03 PM: Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
10:36:03 PM: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
10:36:03 PM: > core-js@3.26.0 postinstall /opt/build/repo/node_modules/core-js
10:36:03 PM: > node -e "try{require('./postinstall')}catch(e){}"
10:36:03 PM: > core-js-pure@3.26.0 postinstall /opt/build/repo/node_modules/core-js-pure
10:36:03 PM: > node -e "try{require('./postinstall')}catch(e){}"
10:36:04 PM: > es5-ext@0.10.62 postinstall /opt/build/repo/node_modules/es5-ext
10:36:04 PM: >  node -e "try{require('./_postinstall')}catch(e){}" || exit 0
10:36:04 PM: > gatsby-telemetry@2.14.0 postinstall /opt/build/repo/node_modules/gatsby-telemetry
10:36:04 PM: > node src/postinstall.js || true
10:36:04 PM: > gatsby-cli@3.14.2 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
10:36:04 PM: > node scripts/postinstall.js
10:36:04 PM: > @fortawesome/fontawesome-svg-core@1.2.36 postinstall /opt/build/repo/node_modules/@fortawesome/fontawesome-svg-core
10:36:04 PM: > node attribution.js
10:36:04 PM: Font Awesome Free 1.2.36 by @fontawesome - https://fontawesome.com
10:36:04 PM: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
10:36:04 PM: > @fortawesome/free-solid-svg-icons@5.15.4 postinstall /opt/build/repo/node_modules/@fortawesome/free-solid-svg-icons
10:36:04 PM: > node attribution.js
10:36:04 PM: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
10:36:04 PM: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
10:36:04 PM: > gatsby@3.14.6 postinstall /opt/build/repo/node_modules/gatsby
10:36:04 PM: > node scripts/postinstall.js
10:36:05 PM: npm notice created a lockfile as package-lock.json. You should commit this file.
10:36:05 PM: npm WARN notsup Unsupported engine for gatsby-remark-katex@6.24.0: wanted: {"node":">=14.15.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:36:05 PM: npm WARN notsup Not compatible with your version of node/npm: gatsby-remark-katex@6.24.0
10:36:05 PM: npm WARN notsup Unsupported engine for react-hook-form@7.39.3: wanted: {"node":">=12.22.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:36:05 PM: npm WARN notsup Not compatible with your version of node/npm: react-hook-form@7.39.3
10:36:05 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
10:36:05 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:36:05 PM: npm WARN notsup Unsupported engine for type-fest@2.19.0: wanted: {"node":">=12.20"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:36:05 PM: npm WARN notsup Not compatible with your version of node/npm: type-fest@2.19.0
10:36:05 PM: npm WARN notsup Unsupported engine for gatsby-plugin-postcss@5.24.0: wanted: {"node":">=14.15.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
10:36:05 PM: npm WARN notsup Not compatible with your version of node/npm: gatsby-plugin-postcss@5.24.0
10:36:05 PM: npm WARN bootstrap@5.2.2 requires a peer of @popperjs/core@^2.11.6 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN gatsby-plugin-typography@3.14.0 requires a peer of typography@^0.16.0 || ^1.0.0-alpha.0 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN gatsby-remark-katex@6.24.0 requires a peer of gatsby@^4.0.0-next but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN gatsby-remark-katex@6.24.0 requires a peer of katex@^0.13.3 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN gatsby-remark-reading-time@1.1.0 requires a peer of gatsby@^2.0.0 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN eslint-config-react-app@6.0.0 requires a peer of babel-eslint@^10.0.0 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN ts-node@9.1.1 requires a peer of typescript@>=2.7 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN acorn-import-assertions@1.8.0 requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.
10:36:05 PM: npm WARN gatsby-plugin-postcss@5.24.0 requires a peer of gatsby@^4.0.0-next but none is installed. You must install peer dependencies yourself.
10:36:05 PM: added 2214 packages from 1135 contributors and audited 2219 packages in 830.981s
10:36:06 PM: 363 packages are looking for funding
10:36:06 PM:   run `npm fund` for details
10:36:06 PM: found 38 vulnerabilities (16 moderate, 16 high, 6 critical)
10:36:06 PM:   run `npm audit fix` to fix them, or `npm audit` for details
10:36:06 PM: NPM modules installed
10:36:06 PM: Creating package sha
10:36:06 PM: Started restoring cached go cache
10:36:06 PM: Finished restoring cached go cache
10:36:06 PM: Installing Go version 1.14.4 (requested 1.14.4)
10:36:10 PM: unset GOOS;
10:36:10 PM: unset GOARCH;
10:36:10 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.14.4.linux.amd64';
10:36:10 PM: export PATH="/opt/buildhome/.gimme/versions/go1.14.4.linux.amd64/bin:${PATH}";
10:36:10 PM: go version >&2;
10:36:10 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.14.4.linux.amd64.env"
10:36:10 PM: go version go1.14.4 linux/amd64
10:36:10 PM: Detected 1 framework(s)
10:36:10 PM: "gatsby" at version "3.14.6"
10:36:10 PM: Installing missing commands
10:36:10 PM: Verify run directory
10:36:12 PM: ​
10:36:12 PM: ────────────────────────────────────────────────────────────────
10:36:12 PM:   Netlify Build                                                 
10:36:12 PM: ────────────────────────────────────────────────────────────────
10:36:12 PM: ​
10:36:12 PM: ❯ Version
10:36:12 PM:   @netlify/build 28.1.13
10:36:12 PM: ​
10:36:12 PM: ❯ Flags
10:36:12 PM:   baseRelDir: true
10:36:12 PM:   buildId: 637120acfb8b56000973be5b
10:36:12 PM:   deployId: 637120acfb8b56000973be5d
10:36:12 PM: ​
10:36:12 PM: ❯ Current directory
10:36:12 PM:   /opt/build/repo
10:36:12 PM: ​
10:36:12 PM: ❯ Config file
10:36:12 PM:   No config file was defined: using default values.
10:36:12 PM: ​
10:36:12 PM: ❯ Context
10:36:12 PM:   production
10:36:12 PM: ​
10:36:12 PM: ────────────────────────────────────────────────────────────────
10:36:12 PM:   1. Build command from Netlify app                             
10:36:12 PM: ────────────────────────────────────────────────────────────────
10:36:12 PM: ​
10:36:12 PM: $ npm run build
10:36:12 PM: > gatsby-starter-hello-world@0.1.0 build /opt/build/repo
10:36:12 PM: > gatsby build
10:36:13 PM: warning Plugin gatsby-plugin-postcss is not compatible with your gatsby version 3.14.6 - It requires gatsby@^4.0.0-next
10:36:14 PM: warning Plugin gatsby-remark-reading-time is not compatible with your gatsby version 3.14.6 - It requires gatsby@^2.0.0
10:36:14 PM: warning Plugin gatsby-plugin-postcss is not compatible with your gatsby version 3.14.6 - It requires gatsby@^4.0.0-next
10:36:14 PM: warning Plugin gatsby-remark-reading-time is not compatible with your gatsby version 3.14.6 - It requires gatsby@^2.0.0
10:36:14 PM: success open and validate gatsby-configs, load plugins - 0.586s
10:36:14 PM: success onPreInit - 0.008s
10:36:14 PM: success initialize cache - 0.082s
10:36:14 PM: success copy gatsby files - 0.036s
10:36:14 PM: success Compiling Gatsby Functions - 0.163s
10:36:14 PM: success onPreBootstrap - 0.171s
10:36:15 PM: success createSchemaCustomization - 0.412s
10:36:24 PM: success Checking for changed pages - 0.000s
10:36:24 PM: success source and transform nodes - 8.870s
10:36:24 PM: success building schema - 0.438s
10:36:25 PM: success createPages - 0.224s
10:36:25 PM: success createPagesStatefully - 0.060s
10:36:25 PM: info Total nodes: 2711, SitePage nodes: 545 (use --verbose for breakdown)
10:36:25 PM: success Checking for changed pages - 0.000s
10:36:25 PM: success update schema - 0.087s
10:36:25 PM: success onPreExtractQueries - 0.000s
10:36:25 PM: success extract queries from components - 0.332s
10:36:25 PM: success write out redirect data - 0.059s
10:36:25 PM: success onPostBootstrap - 0.000s
10:36:25 PM: info bootstrap finished - 13.229s
10:36:25 PM: success run static queries - 0.003s - 1/1 313.95/s
10:37:27 PM: success run page queries - 62.067s - 545/545 8.78/s
10:37:27 PM: success write out requires - 0.006s
10:37:42 PM: success Building production JavaScript and CSS bundles - 15.266s
10:37:42 PM: success Rewriting compilation hashes - 0.007s
10:37:43 PM: success Writing page-data.json files to public directory - 0.292s - 545/545 1864.62/s
10:37:47 PM: success Building HTML renderer - 2.506s
10:37:48 PM: error Page data from page-data.json for the failed page "/mongodb-countdocuments/": {
10:37:48 PM:   "componentChunkName": "component---src-templates-blog-post-js",
10:37:48 PM:   "path": "/mongodb-countdocuments/",
10:37:48 PM:   "result": {
10:37:48 PM:     "data": {
10:37:48 PM:       "markdownRemark": {
10:37:48 PM:         "html": "<p>The <del>countDocuments()</del> function returns the count of documents that are matched by the given condition.</p>\n<blockquote>\n<p><strong>Note</strong>: A query argument is mandatory for <del>countDocuments()</del>.</p>\n</blockquote>\n<p>The ...",
10:37:48 PM:         "frontmatter": {
10:37:48 PM:           "title": "MongoDB - countDocuments() Function",
10:37:48 PM:           "date": "2021-11-18"
10:37:48 PM:         }
10:37:48 PM:       }
10:37:48 PM:     },
10:37:48 PM:     "pageContext": {
10:37:48 PM:       "slug": "/mongodb-countdocuments/",
10:37:48 PM:       "prev": {
10:37:48 PM:         "fields": {
10:37:48 PM:           "slug": "/limiting-and-skipping-documents-in-mongodb/"
10:37:48 PM:         },
10:37:48 PM:         "frontmatter": {
10:37:48 PM:           "modules": null
10:37:48 PM:         }
10:37:48 PM:       },
10:37:48 PM:       "next": {
10:37:48 PM:         "fields": {
10:37:48 PM:           "slug": "/introduction-to-json/"
10:37:48 PM:         },
10:37:48 PM:         "frontmatter": {
10:37:48 PM:           "modules": null
10:37:48 PM:         }
10:37:48 PM:       }
10:37:48 PM:     }
10:37:48 PM:   },
10:37:48 PM:   "staticQueryHashes": [
10:37:48 PM:     "3159585216"
10:37:48 PM:   ]
10:37:48 PM: }
10:37:48 PM: failed Building static HTML for pages - 1.295s
10:37:48 PM: error Building static HTML failed for path "/mongodb-countdocuments/"
10:37:48 PM: 
10:37:48 PM:   100 |   }
10:37:48 PM:   101 |
10:37:48 PM: > 102 |   return merge(a, b, { arrayMerge: combineMerge })
10:37:48 PM:       |          ^
10:37:48 PM:   103 | }
10:37:48 PM:   104 |
10:37:48 PM:   105 | export default async function staticPage({
10:37:48 PM: 
10:37:48 PM:   WebpackError: TypeError: merge is not a function (from plugin: gatsby-plugin-r  eact-helmet)
10:37:48 PM:   
10:37:48 PM:   - static-entry.js:102 
10:37:48 PM:     gatsby-starter-hello-world/.cache/static-entry.js:102:10
10:37:48 PM:   
10:37:48 PM:   - static-entry.js:166 
10:37:48 PM:     gatsby-starter-hello-world/.cache/static-entry.js:166:24
10:37:48 PM:   
10:37:48 PM:   - gatsby-ssr.js:17 
10:37:48 PM:     [gatsby-starter-hello-world]/[gatsby-plugin-react-helmet]/gatsby-ssr.js:17:5  
10:37:48 PM:   - api-runner-ssr.js:52 
10:37:48 PM:     gatsby-starter-hello-world/.cache/api-runner-ssr.js:52:22
10:37:48 PM:   
10:37:48 PM:   - api-runner-ssr.js:45 
10:37:48 PM:     gatsby-starter-hello-world/.cache/api-runner-ssr.js:45:11
10:37:48 PM:   
10:37:48 PM:   - static-entry.js:307 
10:37:48 PM:     gatsby-starter-hello-world/.cache/static-entry.js:307:5
10:37:48 PM:   
10:37:48 PM:   - index.es.js:121 
10:37:48 PM:     [gatsby-starter-hello-world]/[@fortawesome]/free-solid-svg-icons/index.es.js    :121:1
10:37:48 PM:   
10:37:48 PM: 
10:37:48 PM: not finished Caching JavaScript and CSS webpack compilation - 5.985s
10:37:48 PM: not finished Caching HTML renderer compilation - 1.413s
10:37:48 PM: npm ERR! code ELIFECYCLE
10:37:48 PM: npm ERR! errno 1
10:37:48 PM: npm ERR! gatsby-starter-hello-world@0.1.0 build: `gatsby build`
10:37:48 PM: npm ERR! Exit status 1
10:37:48 PM: npm ERR!
10:37:48 PM: npm ERR! Failed at the gatsby-starter-hello-world@0.1.0 build script.
10:37:48 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
10:37:48 PM: npm ERR! A complete log of this run can be found in:
10:37:48 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-11-13T17_07_48_983Z-debug.log
10:37:48 PM: ​
10:37:48 PM: ────────────────────────────────────────────────────────────────
10:37:48 PM:   "build.command" failed                                        
10:37:48 PM: ────────────────────────────────────────────────────────────────
10:37:48 PM: ​
10:37:48 PM:   Error message
10:37:48 PM:   Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
10:37:48 PM: ​
10:37:48 PM:   Error location
10:37:48 PM:   In Build command from Netlify app:
10:37:48 PM:   npm run build
10:37:48 PM: ​
10:37:48 PM:   Resolved config
10:37:48 PM:   build:
10:37:48 PM:     command: npm run build
10:37:52 PM: Creating deploy upload records
10:37:48 PM:     commandOrigin: ui
10:37:48 PM:     publish: /opt/build/repo/public
10:37:48 PM:     publishOrigin: ui
10:37:49 PM: Caching artifacts
10:37:52 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:37:49 PM: Started saving node modules
10:37:49 PM: Finished saving node modules
10:37:49 PM: Started saving build plugins
10:37:49 PM: Finished saving build plugins
10:37:49 PM: Started saving pip cache
10:37:49 PM: Finished saving pip cache
10:37:49 PM: Started saving emacs cask dependencies
10:37:49 PM: Finished saving emacs cask dependencies
10:37:49 PM: Started saving maven dependencies
10:37:49 PM: Finished saving maven dependencies
10:37:49 PM: Started saving boot dependencies
10:37:49 PM: Finished saving boot dependencies
10:37:49 PM: Started saving rust rustup cache
10:37:49 PM: Finished saving rust rustup cache
10:37:49 PM: Started saving go dependencies
10:37:49 PM: Finished saving go dependencies
10:37:52 PM: Cached ruby version 2.7.1
10:37:52 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:37:52 PM: Failing build: Failed to build site
10:37:52 PM: Finished processing build request in 15m54.823609522s

This is a different error and doesn’t seem to be related to the previous issue. As mentioned, the error is coming from that plugin. Worth asking the plugin’s author.