Installing via yarn add joi leads in errors suggesting that the the module support only node versions up from __v8.9.0__ (Expected version ">=8.9.0") and the installation is rejected.
yarn add v1.3.2
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 ">=8.9.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
And joi is not installed.
Also installing via lerna in a monorepo gives me something like: lerna ERR! error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.9.0".
:
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: yarn install --mutex network:42424 --non-interactive
lerna ERR! error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.9.0".
lerna ERR! error Found incompatible module
lerna ERR! yarn install v1.3.2
lerna ERR! info No lockfile found.
lerna ERR! ...
How is this an issue?!
well I thought that joi was compatible with node 8: https://github.com/hapijs/joi/issues/1363#issuecomment-345463458
Yes, it would have been more clear to say Node 8.9.0 in that other issue. But the person was using Node 6, so the major version difference was the more glaring problem.
More specifically, hapi 17 and joi 13 and such are targeted at Node 8 LTS, which started at Node 8.9.0 . The reason the issue was closed down (and has been on hapi and several other repos) is that the package.json on Joi specifies Node >=8.9.0 .
I see. I didn't know that the LTS started at 8.9.0. Thanks