yarn not found npm Origin: Build & delivery OSI layer 7 · Application Last updated 14 Oct 2026

yarn: command not found

Yarn isn’t installed (or not enabled through Corepack) on this machine.

Exact message you may see yarn: command not found'yarn' is not recognized
Seen on: npm

Meaning

Node 16.10+ ships Corepack, which provides yarn/pnpm when enabled. Otherwise install Yarn globally.

Common causes

  • Fresh machine/CI image
  • Corepack not enabled
  • PATH missing global npm bin

⚡ Quick fix

  1. corepack enable
  2. Or npm install -g yarn

Detailed fix by platform

npm

  1. corepack enable && yarn --version

How to diagnose

  1. Corepack — Enabled?
  2. PATH — Global bin on PATH?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…author identity unknown — Author identity unknown *** Please tell me who you are. (Git)author identity unkno…aws: error: argument — aws: error: argument command: Invalid choice / Unknown options (AWS)aws: error: argumentcommand not found — bash: command not found (Linux)command not foundCorepack keyid — Error: Cannot find matching keyid (Corepack signature verification) (npm)Corepack keyidDefault FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…docker-compose: command not found — docker-compose: command not found / 'compose' is not a docker command (Docker)docker-compose: comma…ENOENT — npm ERR! enoent ENOENT: no such file or directory, open '/path/package.json' (npm)ENOENTyarn not …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.