Keep getting deploy/build errors and im going crazy

Hello everyone, heres my answers to the “help building a good post guide”:

  • We need to know your netlify site name. Example: havent gotten to it to deploy even once yet, so no site name.

  • DNS issues? Tell us the custom domain, tell us the error message! no custom domain so far

  • Build problems? Link or paste the FULL build log & build settings screenshot:

  • Did you try Ask Netlify, our generative AI chatbot, before posting? Yes.

    Here is the logs:
    ```
    3:50:45 PM: build-image version: e4c0a4cdfbecca2a7c3f744f70ce2f9297335459 (noble-new-builds)

    3:50:45 PM: buildbot version: 4e72bc3e8a7c135b5663400784e42b17eeb1c535

    3:50:45 PM: Fetching cached dependencies

    3:50:45 PM: Failed to fetch cache, continuing with build

    3:50:45 PM: Starting to prepare the repo for build

    3:50:46 PM: No cached dependencies found. Cloning fresh repo

    3:50:46 PM: git clone --filter=blob:none https://github.com/Dizzyggs/legacyrp

    3:50:46 PM: Preparing Git Reference refs/heads/main

    3:50:50 PM: Custom functions path detected. Proceeding with the specified path: ‘netlify/functions’

    3:50:50 PM: Starting to install dependencies

    3:50:50 PM: mise ~/.config/mise/config.toml tools: python@3.14.2

    3:50:50 PM: mise ~/.config/mise/config.toml tools: ruby@3.4.8

    3:50:51 PM: mise ~/.config/mise/config.toml tools: go@1.25.5

    3:50:51 PM: v22.21.1 is already installed.

    3:50:51 PM: Now using node v22.21.1 (npm v10.9.4)

    3:50:52 PM: Enabling Node.js Corepack

    3:50:52 PM: Started restoring cached build plugins

    3:50:52 PM: Finished restoring cached build plugins

    3:50:52 PM: Started restoring cached corepack dependencies

    3:50:52 PM: Finished restoring cached corepack dependencies

    3:50:52 PM: No npm workspaces detected

    3:50:52 PM: Started restoring cached node modules

    3:50:52 PM: Finished restoring cached node modules

    3:50:52 PM: Installing npm packages using npm version 10.9.4

    3:52:04 PM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

    3:52:04 PM: npm warn deprecated node-domexception@1.0.0: Use your platform’s native DOMException instead
    npm error Exit handler never called!

    3:52:04 PM: npm error This is an error with npm itself. Please report this error at:

    3:52:04 PM: npm error <https://github.com/npm/cli/issues>

    3:52:04 PM: npm error A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2026-01-09T14_50_52_228Z-debug-0.log

    3:52:04 PM: Error during npm install

    3:52:04 PM: Failing build: Failed to install dependencies
    ```

    Im running node version 22.

    My toml file:

i ran netlify build locally on my pc, and it ran just fine…
had some Sass deprecation warnings but thats about it.

Whats going on here?!

Seems like my NPM version and Node (v22) didn’t like eachother.
I downgraded to node 20, deleted my package-lock.json → ran npm install → then it worked.