question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[yarn][beta] "engine node is incompatible" error

See original GitHub issue

When I install the beta version (3.0.0-beta.9) of node-fetch with Yarn, Yarn returns an error:

error fetch-blob@1.0.7: The engine "node" is incompatible with this module. Expected version "^10.17.0". Got "14.15.4"
error Found incompatible module.

So I have to force the installation with --ignore-engines.

Reproduction

Steps to reproduce the behavior:

  1. Install Node.js version 14 (I use v14.15.4)
  2. Install Yarn (sudo npm i -g yarn)
  3. Create an empty folder, open it in a terminal
  4. Install node-fetch version 3 beta with Yarn (yarn add --dev node-fetch@^3.0.0-beta.9)

Expected behavior

No error because v14 is the current stable version of Node.js.

Your Environment

software version
node-fetch 3.0.0-beta.9
node 14.15.4
yarn 1.22.5
Operating System macOS 11.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Richienbcommented, Jul 5, 2021

Just updated - can confirm.

The reason for the issue is because of the caret. It usually declares that the most recent minor version be used but because the development versions don’t use semver, npm doesn’t understand which version to fetch. Instead, use yarn add node-fetch@next or yarn add node-fetch@3.0.0-beta.9

1reaction
chakflyingcommented, Aug 16, 2021

unfortunately "node-fetch": "^3.0.0-beta.10" would still fetch the wrong version. Sticking to fixed version for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The engine "node" is incompatible with this module
You can try to ignore the engines : $ yarn install --ignore-engines. OR. $ yarn global add <your app> --ignore-engines.
Read more >
Build failed: The engine "node" is incompatible with this ...
My project is Ruby/Rails based and we use a config.yml file to setup CircleCI. There is no mention of node in it, but...
Read more >
Dependency Scanning Fails: "engine 'node' is incompatible ...
Summary. Our Node.js project was successfully using Dependency Scanning for a while. It began to fail once we added a yarn.lock file.
Read more >
the engine node is incompatible with this module - You.com
I updated npm as well as yarn globally on my machine, still no success. I tried without npx and it solved the problem:...
Read more >
React Native Builds fail with, "The engine "node" is ...
Expected version ">=x.x.x" ; error Found incompatible module. React Native builds fail on our agents due to Node compatibility issues. Jihye E avatar....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found