Command failed with exit code 134: npm run generate

Hi all, been scratching my head a good 20 hours over this one so reaching out to the dream team for a bit of help! I have several other instances running on netlify with no problem that are built iin the same way using Vue, Nuxt and Contentful. I have no idea why this keeps failing.

I have attached some info below!

Please community you are my only hope :disappointed_relieved:

Site name : precious-choux-4da029

Site info - Vue and Nuxt website that uses Contentful as a headless CMS runs and builds fine locally (

5:48:09 PM: Build ready to start
5:48:14 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
5:48:14 PM: build-image tag: v4.8.0
5:48:14 PM: buildbot version: 17f6c1ab2fe6d61574ce02b038041b816bf6c085
5:48:14 PM: Fetching cached dependencies
5:48:14 PM: Failed to fetch cache, continuing with build
5:48:14 PM: Starting to prepare the repo for build
5:48:15 PM: No cached dependencies found. Cloning fresh repo
5:48:15 PM: git clone git@bitbucket.org:sh00ks_/craigvaughankitchens
5:48:16 PM: Preparing Git Reference refs/heads/master
5:48:17 PM: Parsing package.json dependencies
5:48:18 PM: 
​
❯ Initial build environment
baseRelDir: true
branch: master
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: e70be770-94fd-4292-9c91-124cd7485f2b
​
❯ UI build settings
baseRelDir: true
build:
  command: npm run generate
  environment:
    - CTF_ACCESS_TOKEN
    - CTF_SPACE_ID
    - NETLIFY_BUILD_DEBUG
  publish: dist
​
❯ Resolved build environment
branch: master
buildDir: /opt/build/repo
configPath: /opt/build/repo/netlify.toml
context: production
env: []
​
❯ Resolved config
build:
  command: npm run generate
  commandOrigin: ui
  environment:
    - CTF_ACCESS_TOKEN
    - CTF_SPACE_ID
    - NETLIFY_BUILD_DEBUG
    - NODE_OPTIONS
  publish: /opt/build/repo/dist
  publishOrigin: ui

5:48:18 PM: Starting build script
5:48:18 PM: Installing dependencies
5:48:18 PM: Python version set to 2.7
5:48:20 PM: Downloading and installing node v16.15.0...
5:48:21 PM: Downloading https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.xz...
5:48:21 PM: Computing checksum with sha256sum
5:48:22 PM: Checksums matched!
5:48:25 PM: Now using node v16.15.0 (npm v8.5.5)
5:48:26 PM: Started restoring cached build plugins
5:48:26 PM: Finished restoring cached build plugins
5:48:26 PM: Attempting ruby version 2.7.2, read from environment
5:48:28 PM: Using ruby version 2.7.2
5:48:29 PM: Using PHP version 8.0
5:48:29 PM: Started restoring cached yarn cache
5:48:29 PM: Finished restoring cached yarn cache
5:48:30 PM: No yarn workspaces detected
5:48:30 PM: Started restoring cached node modules
5:48:30 PM: Finished restoring cached node modules
5:48:30 PM: Installing NPM modules using Yarn version 1.22.10
5:48:31 PM: yarn install v1.22.10
5:48:31 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
5:48:31 PM: [1/4] Resolving packages...
5:48:39 PM: warning popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
5:48:42 PM: warning netlify-cli > cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
5:48:42 PM: warning netlify-cli > @oclif/plugin-plugins > cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
5:48:42 PM: warning netlify-cli > @oclif/plugin-not-found > cli-ux@5.6.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
5:48:44 PM: warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
5:48:47 PM: warning netlify-cli > @netlify/build > @netlify/zip-it-and-ship-it > @vercel/nft > node-pre-gyp@0.13.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
5:48:47 PM: warning netlify-cli > @netlify/plugin-edge-handlers > rollup-plugin-node-polyfills > rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
5:48:47 PM: warning netlify-cli > lambda-local > aws-sdk > uuid@3.3.2: 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.
5:48:49 PM: [2/4] Fetching packages...
5:49:32 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
5:49:32 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info @netlify/routing-local-proxy-darwin-arm64@0.30.2: The platform "linux" is incompatible with this module.
5:49:32 PM: info "@netlify/routing-local-proxy-darwin-arm64@0.30.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info @netlify/routing-local-proxy-darwin-arm64@0.30.2: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info @netlify/routing-local-proxy-darwin-x64@0.30.2: The platform "linux" is incompatible with this module.
5:49:32 PM: info "@netlify/routing-local-proxy-darwin-x64@0.30.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info @netlify/routing-local-proxy-win32-x64@0.30.2: The platform "linux" is incompatible with this module.
5:49:32 PM: info "@netlify/routing-local-proxy-win32-x64@0.30.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-android-arm64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-android-arm64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-android-arm64@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info esbuild-darwin-arm64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-darwin-arm64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-darwin-arm64@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info esbuild-darwin-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-darwin-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-freebsd-arm64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-freebsd-arm64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-freebsd-arm64@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info esbuild-linux-32@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info "esbuild-linux-32@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-linux-arm@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info "esbuild-linux-arm@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-linux-arm64@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info "esbuild-linux-arm64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-linux-mips64le@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info "esbuild-linux-mips64le@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-freebsd-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-freebsd-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-openbsd-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-openbsd-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-netbsd-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-netbsd-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-sunos-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-sunos-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-windows-arm64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-windows-arm64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-windows-arm64@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info esbuild-windows-32@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-windows-32@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-windows-32@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info esbuild-windows-64@0.13.13: The platform "linux" is incompatible with this module.
5:49:32 PM: info "esbuild-windows-64@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: info esbuild-linux-ppc64le@0.13.13: The CPU architecture "x64" is incompatible with this module.
5:49:32 PM: info "esbuild-linux-ppc64le@0.13.13" is an optional dependency and failed compatibility check. Excluding it from installation.
5:49:32 PM: [3/4] Linking dependencies...
5:49:32 PM: warning " > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
5:49:32 PM: warning " > vuetify@2.4.9" has unmet peer dependency "vue@^2.6.4".
5:49:32 PM: warning "@nuxtjs/vuetify > vuetify-loader@1.7.2" has unmet peer dependency "vue-template-compiler@^2.6.10".
5:49:32 PM: warning "@nuxtjs/vuetify > vuetify-loader@1.7.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
5:49:32 PM: warning "@nuxtjs/vuetify > vuetify-loader > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
5:49:32 PM: warning " > @vue/composition-api@1.6.1" has unmet peer dependency "vue@>= 2.5 < 3".
5:49:32 PM: warning " > @yeger/vue-masonry-wall@3.0.32" has unmet peer dependency "vue@^3.0.0".
5:49:32 PM: warning " > @yeger/vue2-masonry-wall@2.0.30" has unmet peer dependency "vue@^2.0.0".
5:49:32 PM: warning " > expose-loader@3.1.0" has unmet peer dependency "webpack@^5.0.0".
5:49:32 PM: warning " > vuex@3.6.2" has unmet peer dependency "vue@^2.0.0".
5:49:32 PM: warning " > vue-gtag@1.16.1" has unmet peer dependency "vue@^2.0.0".
5:49:32 PM: warning " > vue-masonry@0.15.0" has unmet peer dependency "vue@^2.0.0 || >=3.0.0".
5:49:32 PM: warning "vue-masonry > vue-demi@0.12.5" has unmet peer dependency "vue@^3.0.0-0 || ^2.6.0".
5:49:32 PM: warning " > vue-moment@4.1.0" has unmet peer dependency "vue@>=1.x.x".
5:49:32 PM: warning " > eslint-loader@2.2.1" has unmet peer dependency "webpack@>=2.0.0 <5.0.0".
5:49:32 PM: warning " > vuetify-scss@1.4.0" has incorrect peer dependency "vuetify@~1.5.0".
5:49:54 PM: [4/4] Building fresh packages...
5:50:01 PM: success Saved lockfile.
5:50:01 PM: Done in 90.18s.
5:50:01 PM: NPM modules installed using Yarn
5:50:02 PM: Started restoring cached go cache
5:50:02 PM: Finished restoring cached go cache
5:50:02 PM: go version go1.16.5 linux/amd64
5:50:02 PM: go version go1.16.5 linux/amd64
5:50:02 PM: Installing missing commands
5:50:02 PM: Verify run directory
5:50:04 PM: ​
5:50:04 PM: ────────────────────────────────────────────────────────────────
5:50:04 PM:   Netlify Build                                                 
5:50:04 PM: ────────────────────────────────────────────────────────────────
5:50:04 PM: ​
5:50:04 PM: ❯ Version
5:50:04 PM:   @netlify/build 27.1.3
5:50:04 PM: ​
5:50:04 PM: ❯ Flags
5:50:04 PM:   apiHost: api.netlify.com
5:50:04 PM:   baseRelDir: true
5:50:04 PM:   branch: master
5:50:04 PM:   buildId: 628a6949dbf1cf0008cb264e
5:50:04 PM:   buildbotServerSocket: /tmp/netlify-buildbot-socket
5:50:04 PM:   cacheDir: /opt/build/cache
5:50:04 PM:   cachedConfigPath: /tmp/netlify_config.json
5:50:04 PM:   context: production
5:50:04 PM:   cwd: /opt/build/repo
5:50:04 PM:   deployId: 628a6949dbf1cf0008cb2650
5:50:04 PM:   edgeFunctionsDistDir: /tmp/edge-628a6949dbf1cf0008cb2650
5:50:04 PM:   featureFlags:
5:50:04 PM:     - buildbot_build_go_functions
5:50:04 PM:     - edge_functions_cache_cli
5:50:04 PM:     - zisi_parse_isc
5:50:04 PM:   framework: nuxt
5:50:04 PM:   functionsDistDir: /tmp/zisi-628a6949dbf1cf0008cb2650
5:50:04 PM:   mode: buildbot
5:50:04 PM:   nodePath: /opt/buildhome/.nvm/versions/node/v16.15.0/bin/node
5:50:04 PM:   repositoryRoot: /opt/build/repo
5:50:04 PM:   saveConfig: true
5:50:04 PM:   sendStatus: true
5:50:04 PM:   siteId: e70be770-94fd-4292-9c91-124cd7485f2b
5:50:04 PM:   statsd:
5:50:04 PM:     host: 10.65.159.41
5:50:04 PM:     port: 8125
5:50:04 PM:   testOpts:
5:50:04 PM:     silentLingeringProcesses: ''
5:50:04 PM: ​
5:50:04 PM: ❯ Current directory
5:50:04 PM:   /opt/build/repo
5:50:04 PM: ​
5:50:04 PM: ❯ Config file
5:50:04 PM:   /opt/build/repo/netlify.toml
5:50:04 PM: ​
5:50:04 PM: ❯ Resolved config
5:50:04 PM:   build:
5:50:04 PM:     command: npm run generate
5:50:04 PM:     commandOrigin: ui
5:50:04 PM:     environment:
5:50:04 PM:       - CTF_ACCESS_TOKEN
5:50:04 PM:       - CTF_SPACE_ID
5:50:04 PM:       - NETLIFY_BUILD_DEBUG
5:50:04 PM:       - NODE_OPTIONS
5:50:04 PM:     publish: /opt/build/repo/dist
5:50:04 PM:     publishOrigin: ui
5:50:04 PM: ​
5:50:04 PM: ❯ Context
5:50:04 PM:   production
5:50:04 PM: ​
5:50:04 PM: ────────────────────────────────────────────────────────────────
5:50:04 PM:   1. Build command from Netlify app                             
5:50:04 PM: ────────────────────────────────────────────────────────────────
5:50:04 PM: ​
5:50:04 PM: $ npm run generate
5:50:05 PM: > detready-webapp@1.0.0 generate
5:50:05 PM: > nuxt generate
5:50:07 PM: [error] (node:1646) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /opt/build/repo/node_modules/@nuxt/components/package.json.
5:50:07 PM: Update this package.json to use a subpath pattern like "./*".
5:50:07 PM: (Use `node --trace-deprecation ...` to show where the warning was created)
5:50:28 PM: node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed.
Aborted (core dumped)
5:50:28 PM: ​
5:50:28 PM: ────────────────────────────────────────────────────────────────
5:50:28 PM:   "build.command" failed                                        
5:50:28 PM: ────────────────────────────────────────────────────────────────
5:50:28 PM: ​
5:50:28 PM:   Error message
5:50:28 PM:   Command failed with exit code 134: npm run generate (https://ntl.fyi/exit-code-134)
5:50:28 PM: ​
5:50:28 PM:   Error location
5:50:28 PM:   In Build command from Netlify app:
5:50:28 PM:   npm run generate
5:50:28 PM: ​
5:50:28 PM:   Resolved config
5:50:28 PM:   build:
5:50:28 PM:     command: npm run generate
5:50:28 PM:     commandOrigin: ui
5:50:28 PM:     environment:
5:50:28 PM:       - CTF_ACCESS_TOKEN
5:50:28 PM:       - CTF_SPACE_ID
5:50:28 PM:       - NETLIFY_BUILD_DEBUG
5:50:28 PM:       - NODE_OPTIONS
5:50:28 PM:     publish: /opt/build/repo/dist
5:50:28 PM:     publishOrigin: ui
5:50:28 PM: Caching artifacts
5:50:28 PM: Started saving node modules
5:50:28 PM: Finished saving node modules
5:50:28 PM: Started saving build plugins
5:50:28 PM: Finished saving build plugins
5:50:28 PM: Started saving yarn cache
5:50:34 PM: Finished saving yarn cache
5:50:34 PM: Started saving pip cache
5:50:34 PM: Finished saving pip cache
5:50:34 PM: Started saving emacs cask dependencies
5:50:34 PM: Finished saving emacs cask dependencies
5:50:34 PM: Started saving maven dependencies
5:50:34 PM: Finished saving maven dependencies
5:50:34 PM: Started saving boot dependencies
5:50:34 PM: Finished saving boot dependencies
5:50:34 PM: Started saving rust rustup cache
5:50:34 PM: Finished saving rust rustup cache
5:50:34 PM: Started saving go dependencies
5:50:34 PM: Finished saving go dependencies
5:50:36 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:50:36 PM: Creating deploy upload records
5:50:36 PM: Failing build: Failed to build site
5:50:37 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
5:50:37 PM: Finished processing build request in 2m22.90518534s

Hey @_carvill,

I found something interesting, which is this comment:

It mentions, this won’t work with Node 16+. While you can downgrade your Node version, I’d advise to find alternatives to your workflow so you don’t have to stick with Node < 16.

@hrishikesh You are incredible! that was the issue! Tweaked a few things and ditched Fibers and it’s good to go! Thank you again! :clap: :clap: :clap: