Netlify fails to build my project with pnpm. This issue does not exist with npm.
- Site name: spectacular-parfait-25c7e6
- No custom domain
- Build log:
7:57:59 PM: build-image version: fc633c38410b02da4a669f39257893258a9f3c2c (noble)
7:57:59 PM: buildbot version: b6e8934d0af37cb471ae4c7f6b6db828f3f33cff
7:57:59 PM: Fetching cached dependencies
7:57:59 PM: Failed to fetch cache, continuing with build
7:57:59 PM: Starting to prepare the repo for build
7:58:00 PM: No cached dependencies found. Cloning fresh repo
7:58:00 PM: git clone --filter=blob:none https://github.com/xianort/product-preview-card
7:58:00 PM: Preparing Git Reference refs/heads/main
7:58:02 PM: Starting to install dependencies
7:58:02 PM: Python version set to 3.13.3
7:58:02 PM: Ruby version set to 2.7.2
7:58:02 PM: mise go@1.19 install
7:58:02 PM: mise go@1.19 download go1.19.linux-amd64.tar.gz
7:58:04 PM: mise go@1.19 checksum go1.19.linux-amd64.tar.gz
7:58:04 PM: mise go@1.19 extract go1.19.linux-amd64.tar.gz
7:58:05 PM: mise go@1.19 go version
7:58:05 PM: mise go@1.19 go version go1.19 linux/amd64
7:58:05 PM: mise go@1.19 ✓ installed
7:58:05 PM: Go version set to 1.19
7:58:06 PM: Using PHP version 8.3
7:58:08 PM: Downloading and installing node v22.15.0...
7:58:08 PM: Downloading https://nodejs.org/dist/v22.15.0/node-v22.15.0-linux-x64.tar.xz...
7:58:09 PM: Computing checksum with sha256sum
7:58:09 PM: Checksums matched!
7:58:11 PM: Now using node v22.15.0 (npm v10.9.2)
7:58:11 PM: Enabling Node.js Corepack
7:58:11 PM: Started restoring cached build plugins
7:58:11 PM: Finished restoring cached build plugins
7:58:11 PM: Started restoring cached corepack dependencies
7:58:11 PM: Finished restoring cached corepack dependencies
7:58:12 PM: No pnpm workspaces detected
7:58:12 PM: Started restoring cached node modules
7:58:12 PM: Finished restoring cached node modules
7:58:13 PM: Installing npm packages using pnpm version 10.9.0
7:58:13 PM: Lockfile is up to date, resolution step is skipped
7:58:13 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
7:58:13 PM: Packages: +192
7:58:13 PM: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7:58:14 PM: Progress: resolved 192, reused 0, downloaded 25, added 11
7:58:15 PM: Progress: resolved 192, reused 0, downloaded 188, added 187
7:58:16 PM: Progress: resolved 192, reused 0, downloaded 191, added 191
7:58:24 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
7:58:18 PM: Progress: resolved 192, reused 0, downloaded 192, added 191
7:58:18 PM: Progress: resolved 192, reused 0, downloaded 192, added 192, done
7:58:18 PM: devDependencies:
7:58:18 PM: + @tailwindcss/postcss 4.1.4
7:58:18 PM: + parcel 2.14.4
7:58:18 PM: + postcss 8.5.3
7:58:18 PM: + prettier 3.5.3
7:58:18 PM: + prettier-plugin-tailwindcss 0.6.11
7:58:18 PM: + svgo 3.3.2
7:58:18 PM: + tailwindcss 4.1.4
7:58:18 PM: ╭ Warning ─────────────────────────────────────────────────────────────────────╮
7:58:18 PM: │ │
7:58:18 PM: │ Ignored build scripts: @parcel/watcher, @swc/core, lmdb, │
7:58:18 PM: │ msgpackr-extract. │
7:58:18 PM: │ Run "pnpm approve-builds" to pick which dependencies should be allowed │
7:58:18 PM: │ to run scripts. │
7:58:18 PM: │ │
7:58:18 PM: ╰──────────────────────────────────────────────────────────────────────────────╯
7:58:18 PM: Done in 5.4s using pnpm v10.9.0
7:58:18 PM: npm packages installed using pnpm
7:58:19 PM: Successfully installed dependencies
7:58:19 PM: Starting build script
7:58:20 PM: Detected 1 framework(s)
7:58:20 PM: "parcel" at version "2.14.4"
7:58:20 PM: Section completed: initializing
7:58:21 PM:
7:58:21 PM: Netlify Build
7:58:21 PM: ────────────────────────────────────────────────────────────────
7:58:21 PM:
7:58:21 PM: ❯ Version
7:58:21 PM: @netlify/build 32.0.1
7:58:21 PM:
7:58:21 PM: ❯ Flags
7:58:21 PM: accountId: 6768135d24c64eae44f22c06
7:58:21 PM: baseRelDir: true
7:58:21 PM: buildId: 68091bfa9474740008b8b71c
7:58:21 PM: deployId: 68091bfa9474740008b8b71e
7:58:22 PM:
7:58:22 PM: ❯ Current directory
7:58:22 PM: /opt/build/repo
7:58:22 PM:
7:58:22 PM: ❯ Config file
7:58:22 PM: No config file was defined: using default values.
7:58:22 PM:
7:58:22 PM: ❯ Context
7:58:22 PM: production
7:58:22 PM:
7:58:22 PM: Build command from Netlify app
7:58:22 PM: ────────────────────────────────────────────────────────────────
7:58:22 PM:
7:58:22 PM: $ pnpm run build
7:58:22 PM: > product-preview-card-component-main@1.0.0 build /opt/build/repo
7:58:22 PM: > parcel build
7:58:22 PM: Building...
7:58:23 PM: Bundling...
7:58:23 PM: Packaging & Optimizing...
7:58:23 PM: ✨ Built in 1.25s
7:58:23 PM: dist/index.html 2.04 kB 240ms
7:58:23 PM: dist/favicon-32x32.54eb69c1.png 1.06 kB 213ms
7:58:23 PM: dist/image-product-desktop.1af46163.jpg 45.05 kB 201ms
7:58:23 PM: dist/image-product-mobile.6dd5cee3.jpg 29.47 kB 149ms
7:58:23 PM: dist/icon-cart.f83e5b43.svg 535 B 235ms
7:58:23 PM: dist/repo.a7788a73.css 8.43 kB 229ms
7:58:24 PM: Segmentation fault (core dumped)
7:58:24 PM: ELIFECYCLE Command failed with exit code 139. (https://ntl.fyi/exit-code-139)
7:58:24 PM:
7:58:24 PM: "build.command" failed
7:58:24 PM: ────────────────────────────────────────────────────────────────
7:58:24 PM:
7:58:24 PM: Error message
7:58:24 PM: Command failed with exit code 139: pnpm run build (https://ntl.fyi/exit-code-139)
7:58:24 PM:
7:58:24 PM: Error location
7:58:24 PM: In Build command from Netlify app:
7:58:24 PM: pnpm run build
7:58:24 PM:
7:58:24 PM: Resolved config
7:58:24 PM: build:
7:58:24 PM: command: pnpm run build
7:58:24 PM: commandOrigin: ui
7:58:24 PM: publish: /opt/build/repo/dist
7:58:24 PM: publishOrigin: ui
7:58:24 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:58:24 PM: Failing build: Failed to build site
7:58:25 PM: Finished processing build request in 25.42s
- Build config: