Home
Support Forums

Build error: Error during yarn install

Error log:

8:08:20 AM: error meros@1.1.4: The engine “node” is incompatible with this module. Expected version “>=12”. Got “10.24.1”
8:08:20 AM: error Found incompatible module
8:08:20 AM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
8:08:20 AM: Error during Yarn install
8:08:20 AM: Build was terminated: Build script returned non-zero exit code: 1
8:08:20 AM: Creating deploy upload records
8:08:21 AM: Failing build: Failed to build site
8:08:21 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1

Iam getting this error for 2 days and I have tried some of the solutions from other posts.
tried updating my yarn.lock file, and yarn upgrade also but didn’t work,
our Build Command is gatsby build
Kindly help me guys.
Thank you for your time.

You need to upgrade the Node version. The docs are here: Manage build dependencies | Netlify Docs

1 Like