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)
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.
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: