Builds failing suddenly

One of our sites (details below) is no longer building for no apparent reason. It was successfully building until December 26, 2024, but stopped on December 30, 2024. Although a PR has been merged in between, I’ve tested it by reverting that commit, but it still doesn’t build. The main error message is “Error while installing dependencies in /opt/build/repo/.netlify/plugins/“. Help?

Site name: app-therm-stage
Build log: Netlify
(LMK if you aren’t able to access the logs for any reason)

Does removing the extension: Netlify solve the issue?

We need the CSP extension enabled for most sites, so that unfortunately won’t work for us. However I tried disabling it for testing using CSP_NONCE_DISTRIBUTION set to 0 and it still didn’t build.

Log: Netlify

What changed between the 26th and the 30th of December, 2024?

This is a blocker for us :sweat:

Does anyone have a solution?

I suggested removing the plugin entirely for testing. Using the environment variable still leaves the plugin enabled.

That’s not much of a solution for us, as we definitely need the extension.

Anyways, I turned it off to test and the build was successful. Upon re-enabling it, the build failed.

Several of our builds are breaking. Is there a solution to this or what?

Hi @shravan,

Sorry to hear you’re still having issues. If you try the npm package here:

This will help us narrow down the issue. Do you run into the same issue where the deploy fails or is it successful?

1 Like

Thanks, Melvin! While attempting to install that package, I seem to have inadvertently discovered the root cause of the issue—it was the outdated version of Node that was causing the problem. The builds were failing for all our maintenance-only projects that were using Node 10.x or older. Switching to 12.x resolved the issue. I’m not sure how long this fix will work, but I hope the extension’s developers can keep it as backward-compatible as possible. At the very least, it would be helpful if some specific details about extensions that won’t work with older versions of Node were added to this message.

Hey @shravan thank you for coming back to share the solution!

For future reference, Netlify will read the .nvmrc file in the root of your project. This means you don’t have to dive into the Netlify build settings to edit/check the node version used for your project and you can control the version from a single source.

Node 10.x was introduced in 2018 and deprecated in 2021 nearly 4 years ago. I’d definitely recommend using a recent Node version if not the latest release to maintain security in your project.

I do however think it’s a good idea to get the plugin’s readme updated to explain the requirement for a recent Node version. You can always open an issue to get this addressed:

Thanks

1 Like

Upgrading to a recent version of Node is definitely on our todo, but we’re currently bandwidth-limited.

An .nvmrc file would definitely simplify the process. Thanks for sharing that.

1 Like