Deploy Failure: Dependencies Installation Error

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.

That does seem to be the root of the issue.

There’s no 10.0.9 on NPM, and 10.0.8 is the latest:
https://www.npmjs.com/package/@netlify/blobs?activeTab=versions

But this release from last week mentions bumping @netlify/blobs to ^10.0.9

Great find! I was driving myself nuts trying to get my deployment to work with no avail. Honestly relieved to know it’s not me.

My guess is that with that release Netlify changed the dependencies in their package.json or netlify equivalent folder before the blobs package actually updated.

Here’s hoping for a fix

Its been 4 hours I was thinking what am I doing wrong was losing my patience someone help me out with this…

1 Like

If it’s not a dependency that you can directly adjust the version of in your project package.json, then you’ll likely need to wait for Netlify to resolve.

I’ve tried to escalate it as a support ticket in the hope that it gets attention faster than the thread may otherwise.

Not sure you realised but the build is failing while trying to install the NEON database extension. Which installs by default.

If you are not using NEON in your project, you can force to uninstall it here: Netlify

That’s the one trying to install @netlify/blobs@10.0.9.

I uninstalled it and it built succesfully. But yeah, I do not use NEON so it wasn’t an issue for me to unistall it entirely.

1 Like

This was the fix for us (also not using Neon)

Netlify are now aware of the issue and have added it to their status page: