react-joyride: The engine "node" is incompatible with this module. Expected version ">=6.0.0".

$ yarn add react-joyride
yarn add v0.15.1
info No lockfile found.
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
error react-joyride@1.5.0: The engine "node" is incompatible with this module. Expected version ">=6.0.0".
error Found incompatible module
info Visit http://yarnpkg.com/en/docs/cli/add for documentation about this command.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 19
  • Comments: 16 (3 by maintainers)

Most upvoted comments

use npm.

If you use yarn, try yarn --ignore-engines, after https://github.com/yarnpkg/yarn/commit/b880d403ed9f32e724207ecbdb94c794d4c64131 lands in (probably) 15.2.

I fixed this bug really quick, this is what I did:

check your node version with: $ node -v check your npm version with: $ npm -v Open package.json and make sure the values you got from running the two commands above match with the versions of β€˜node’ and β€˜npm’ on the document. Mine didn’t so I just changed the values, saved and everything worked fine.

update your node js to the newest version

Fixed it for me by changing the versioning for npm and node under engines in package.json to use >= instead of (~ | ^)

Hoping to have this reconsidered in #255. Ignoring all engines validation is a nuclear option and upgrading Node is not always an option. Unfortunately, the current use of engines is not correct. Using it correctly would resolve the issue without workarounds.

install v8 and try again: curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash source ~/.bashrc nvm install v8 nvm use v8

@edunicastro, I tried your solution and it worked for me. I changed my node version in package.json from ^6.0.0 to ^9.8.0 and I changed my npm version from >= 3.0.0 to >=5.6.0 (yes, I removed the space between the = sign and the number 3). Thanks for the tip! Note: This was for a completely different project that I am working on, it has nothing to do with react-joyride