New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error because npm promote ajv-keywords
#170
Comments
I can confirm, that any installation with npm v6 of project that has:
Is getting broken, because npm installs |
I understand the reason for the error, but there is no way to solve this problem elegantly. |
This is a bug on the npm v6 side (see: npm/npm#19877) AFAIK it can be fixed simply by upgrading to npm v7 or later (default starting from Node.js v16). Otherwise, there's no reliable fix, assuming the current design of It could be worked around in In serverless we're considering hard-coding what we need from |
Thank you for your help. I guess my best solution is to wait for npm7 to be supported in my project. |
Run
npm list ajv ajv-keywords
in my project:My project don't depend on
ajv
, But the dependencies of my project depend onajv
andajv-keywords
.ajv-keyword
was promote to./node_modules/ajv-keyworkds
because it isn't conflict, butajv
not.....However the actual installation effect is:
And
mili
Throw Error:peerDependencies
is not easy to use。。。The text was updated successfully, but these errors were encountered: