$ yarn add react-joyride
yarn add v0.15.1
info No lockfile found.
[1/4] 馃攳 Resolving packages...
[2/4] 馃殮 Fetching packages...
error [email protected]: 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.
use npm.
Same issue using yarn. +1
If you use yarn, try yarn --ignore-engines, after https://github.com/yarnpkg/yarn/commit/b880d403ed9f32e724207ecbdb94c794d4c64131 lands in (probably) 15.2.
Same issue. I am in homestead and cannot figure out for the life of me how to update node
update your node js to the newest version
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.
+1 I'm using v8.4.0 and I'm getting The engine "node" is incompatible with this module. Expected version "^7.6.0". .
@dioptre
There's no engines field anymore so I'm not sure what causes it.
If you find out, let me know
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.
@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
Fixed it for me by changing the versioning for npm and node under engines in package.json to use >= instead of (~ | ^)
Thank you edunicastro!!
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
brew upgrade node worked for me
Upgrading node to the latest version fixed it for me.
where is package.json located in windows?
Most helpful comment
If you use
yarn, tryyarn --ignore-engines, after https://github.com/yarnpkg/yarn/commit/b880d403ed9f32e724207ecbdb94c794d4c64131 lands in (probably) 15.2.