Closed teppeis closed 6 years ago
It looks like yarn problem, npm installs it ok: https://travis-ci.org/epoberezkin/ajv/jobs/358014029
@epoberezkin yes, exit with an error is yarn's expected behavior (and it has --ignore-engines option for the workaround). But also npm shows warning. https://travis-ci.org/epoberezkin/ajv/jobs/358014029#L462
Anyway, punycode (and uri-js) dropped support for Node v4. https://github.com/bestiejs/punycode.js/pull/48
But according to README, ajv supports Node.js 0.10+.
supports browsers and Node.js 0.10-8.x
README indeed need updating
In Node.js v4,
yarn
cannot install ajv:also
npm
warns:544 introduces
uri-js
and it requirespunycode
that doesn't support Node v4.IMO ajv can drop support Node v4 (the EOL is next month, April 2018). It would be better to add
engines
field topackage.json
of ajv.