For some reason I have been unable to build any kind of Next.JS site. This includes templates provided by Netlify.
Here is is the full log from my latest attempt:
10:24:20 PM: Netlify Build
10:24:20 PM: ────────────────────────────────────────────────────────────────
10:24:20 PM:
10:24:20 PM: ❯ Version
10:24:20 PM: @netlify/build 35.1.2
10:24:20 PM:
10:24:20 PM: ❯ Flags
10:24:20 PM: accountId: 666619d73f0dfb24187fd288
10:24:20 PM: baseRelDir: true
10:24:20 PM: buildId: 68ae6c26f8922e2481519cf5
10:24:20 PM: deployId: 68ae6c26f8922e2481519cf7
10:24:21 PM:
10:24:21 PM: ❯ Current directory
10:24:21 PM: /opt/build/repo
10:24:21 PM:
10:24:21 PM: ❯ Config file
10:24:21 PM: No config file was defined: using default values.
10:24:21 PM:
10:24:21 PM: ❯ Context
10:24:21 PM: production
10:24:52 PM:
10:24:52 PM: ❯ Installing extensions
10:24:52 PM: - neon
10:25:07 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:25:07 PM:
10:25:07 PM: Dependencies installation error
10:25:07 PM: ────────────────────────────────────────────────────────────────
10:25:07 PM:
10:25:07 PM: Error message
10:25:07 PM: Error while installing dependencies in /opt/build/repo/.netlify/plugins/
10:25:07 PM: npm error code ETARGET
10:25:07 PM: npm error notarget No matching version found for @netlify/blobs@10.0.9.
10:25:07 PM: npm error notarget In most cases you or one of your dependencies are requesting
10:25:07 PM: npm error notarget a package version that doesn’t exist.
10:25:07 PM: Resolved config
10:25:07 PM: build:
10:25:07 PM: command: npm run build
10:25:07 PM: commandOrigin: ui
10:25:07 PM: environment:
10:25:07 PM: - AUTH_DISCORD_ID
10:25:07 PM: - AUTH_DISCORD_SECRET
10:25:07 PM: - AUTH_SECRET
10:25:07 PM: - DATABASE_URL
10:25:07 PM: publish: /opt/build/repo
10:25:07 PM: publishOrigin: default
10:25:07 PM: plugins:
10:25:07 PM: - inputs: {}
10:25:07 PM: origin: ui
10:25:07 PM: package: “@netlify/plugin-nextjs”
10:25:07 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:25:07 PM: Failing build: Failed to build site
10:25:08 PM: Finished processing build request in 56.056s
It looks like Netlify is trying to download Blobs@10.0.9 and it doesn’t exist. Looking at the NPM package the latest version is 10.0.8.

