While initializing throw error which my node version is 18.20.4, but i update my node version globally to 20.0.0

PLEASE help us help you by writing a good post!

  • We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot
  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.

The better the post - the faster the answer.
7:32:31 PM: build-image version: ecdc8b770f4a0193fd3f258c1bc6029e681813a4 (focal)

7:32:31 PM: buildbot version: 16ead92caa9f8e177f18ab47e138c7dc936e93d8

7:32:31 PM: Building without cache

7:32:31 PM: Starting to prepare the repo for build

7:32:32 PM: No cached dependencies found. Cloning fresh repo

7:32:32 PM: git clone --filter=blob:none https://github.com/BlackHawk999/uxima

7:32:32 PM: Preparing Git Reference refs/heads/master

7:32:35 PM: Starting to install dependencies

7:32:35 PM: Python version set to 3.8

7:32:35 PM: Attempting Ruby version 2.7.2, read from environment

7:32:36 PM: Using Ruby version 2.7.2

7:32:37 PM: Started restoring cached go cache

7:32:37 PM: Finished restoring cached go cache

7:32:39 PM: go version go1.19.13 linux/amd64

7:32:40 PM: Using PHP version 8.0

7:32:43 PM: v18.20.4 is already installed.

7:32:43 PM: Now using node v18.20.4 (npm v10.7.0)

7:32:43 PM: Enabling Node.js Corepack

7:32:43 PM: Started restoring cached build plugins

7:32:43 PM: Finished restoring cached build plugins

7:32:43 PM: Started restoring cached corepack dependencies

7:32:43 PM: Finished restoring cached corepack dependencies

7:32:43 PM: Started restoring cached yarn cache

7:32:43 PM: Finished restoring cached yarn cache

7:32:44 PM: No yarn workspaces detected

7:32:44 PM: Started restoring cached node modules

7:32:44 PM: Finished restoring cached node modules

7:32:44 PM: Installing npm packages using Yarn version 1.22.19

7:32:45 PM: yarn install v1.22.19

7:32:45 PM: [1/4] Resolving packages…

7:32:45 PM: [2/4] Fetching packages…

7:32:45 PM: warning Pattern [“vue@latest”] is trying to unpack in the same destination “/opt/buildhome/.yarn_cache/v6/npm-vue-3.4.37-64ce0eeb8de16a29fb74e504777ee8c0c1cf229e-integrity/node_modules/vue” as pattern [“vue@^3.4.32”]. This could result in non-deterministic behavior, skipping.

7:33:08 PM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

7:33:08 PM: error minimatch@10.0.1: The engine “node” is incompatible with this module. Expected version “20 || >=22”. Got “18.20.4”

7:33:08 PM: error Found incompatible module.

7:33:08 PM: info Visit yarn install | Yarn for documentation about this command.

7:33:08 PM: Error during Yarn install

7:33:08 PM: Failing build: Failed to install dependencies on erroe i got node version 18, but in project my node version is 20.0.0, how to resolve it ?

but i update my node version globally to 20.0.0

How have you done this?

Because the build is clearly running with 18.20.4, so the error is not wrong:

See the documentation here: