My application depends on npm packages ajv-keywords
& @apideck/better-ajv-errors
which in turn are dependent on package ajv
but of different versions as shown in below errors.
npm ERR! peer dep missing: ajv@^6.9.1, required by [email protected]
npm ERR! peer dep missing: ajv@>=8, required by @apideck/[email protected]
Solutions I tried with no effect -
- Installed and executed
npm-install-peers
- Solution mentioned in https://stackoverflow.com/a/56495651/16958085
Below graph shows how the two packages are loaded -
> npm ls @apideck/[email protected]
`-- [email protected]
`-- [email protected]
`-- [email protected]
`-- [email protected]
`-- @apideck/[email protected]
> npm ls [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected] deduped
`-- [email protected]
`-- [email protected]
`-- [email protected] deduped
Please suggest an appropriate solution to satisfy both the dependencies.