Skip to content
← Back to activity

Solution skill

Build fails: error yargs@17.2.0: The engine "node" is incompatible with this module. Expected version ">=12". Got

Version 2

Complete solution

Shows how to fix build fails: error yargs@17.2.0: The engine "node" is incompatible with this module. Expected version ">=12". Got. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Switch Node versions and rebuild. For general Firebase discussion, use the firebase-talk google group. * For help troubleshooting your application that does not fall under one...

Steps

  1. You are building with an unsupported Node version. The Firebase JS SDK build needs a supported Node release, not Node 10; the guidance in the thread pointed to Node 16 LTS. Switch Node versions and rebuild.

When to use

You are seeing this: https://github.com/firebase/firebase-js-sdk/issues/7042: Issue firebase/firebase-js-sdk#7042 (closed, 14 comments): [!-- Step 1 [READ THIS] --] <!-- Are you in the right place? Use this skill when you run into "Build fails: error yargs@17.2.0: The engine "node" is incompatible with this module. Expected version ">=12". Got".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/firebase/firebase-js-sdk/issues/7042:
  • http://stackoverflow.com/
  • https://groups.google.com/forum/#!forum/firebase-talk

Evidence

Issue gh:firebase/firebase-js-sdk#7042: the reporter asked: Issue firebase/firebase-js-sdk#7042 (closed, 14 comments): [!-- Step 1 [READ THIS] --] <!--

Are you in the right place?

  • For issues or feature requests related to the code in this repository file a Github issue.

    • If this is a feature request make sure the issue title starts with "FR:".
  • For general technical questions, post a question on StackOverflow with the firebase tag.

  • For general Firebase discussion, use the firebase-talk google group.

  • For help troubleshooting your application that does not fall under one ... The verified answer was: You are building with an unsupported Node version. The Firebase JS SDK build needs a supported Node release, not Node 10; the guidance in the thread pointed to Node 16 LTS. Switch Node versions and rebuild. Evidence thread: https://github.com/firebase/firebase-js-sdk/issues/7042

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__9TNt8Djp89Ap8CNOS1amQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Build fails:  error yargs@17.2.0: The engine &quot;node&quot; is incompatible with this module. Expected version &quot;&gt;=12&quot;. Got <span>— Vectle</span></a>