Skip to content
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

bug: peer? dependency issue with certificate-model and npm install #224

Open
eamon0989 opened this issue Sep 18, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@eamon0989
Copy link
Member

eamon0989 commented Sep 18, 2023

Description

When using @s1seven/schema-tools-certificate-model in a project that uses npm, the error shown below is thrown. It works with yarn as the resolution is different. See the recommended post here for more details: https://stackoverflow.com/questions/67185714/how-do-i-read-npm-conflicting-peer-dependency-error-messages. We first came across this issue while working on Composer, and now while building a docker image of certificate-service.

#18 7.402 npm ERR! ERESOLVE could not resolve
#18 7.402 npm ERR!
#18 7.402 npm ERR! While resolving: @s1seven/schema-tools-certificate-model@0.3.7
#18 7.403 npm ERR! Found: @s1seven/schema-tools-extract-emails@0.4.2
#18 7.403 npm ERR! node_modules/@s1seven/schema-tools-extract-emails
#18 7.403 npm ERR!   @s1seven/schema-tools-extract-emails@"0.4.2" from the root project
#18 7.403 npm ERR!   peer @s1seven/schema-tools-extract-emails@"0.4.2" from @s1seven/schema-tools-certificate-summary@0.3.1
#18 7.403 npm ERR!   node_modules/@s1seven/schema-tools-certificate-summary
#18 7.403 npm ERR!     @s1seven/schema-tools-certificate-summary@"0.3.1" from the root project
#18 7.403 npm ERR!     @s1seven/schema-tools-certificate-summary@"^0.3.0" from @s1seven/custom-schema-tools-certificate-summary@0.2.0
#18 7.403 npm ERR!     node_modules/@s1seven/custom-schema-tools-certificate-summary
#18 7.403 npm ERR!       @s1seven/custom-schema-tools-certificate-summary@"0.2.0" from the root project
#18 7.403 npm ERR!
#18 7.403 npm ERR! Could not resolve dependency:
#18 7.403 npm ERR! peer @s1seven/schema-tools-extract-emails@"0.4.1" from @s1seven/schema-tools-certificate-model@0.3.7
#18 7.403 npm ERR! node_modules/@s1seven/schema-tools-certificate-model
#18 7.403 npm ERR!   @s1seven/schema-tools-certificate-model@"0.3.7" from the root project
#18 7.404 npm ERR!
#18 7.404 npm ERR! Conflicting peer dependency: @s1seven/schema-tools-extract-emails@0.4.1
#18 7.404 npm ERR! node_modules/@s1seven/schema-tools-extract-emails
#18 7.404 npm ERR!   peer @s1seven/schema-tools-extract-emails@"0.4.1" from @s1seven/schema-tools-certificate-model@0.3.7
#18 7.404 npm ERR!   node_modules/@s1seven/schema-tools-certificate-model
#18 7.404 npm ERR!     @s1seven/schema-tools-certificate-model@"0.3.7" from the root project
#18 7.404 npm ERR!
#18 7.404 npm ERR! Fix the upstream dependency conflict, or retry
#18 7.404 npm ERR! this command with --force or --legacy-peer-deps
#18 7.404 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

What keywords did you search in schema-tools issues before filing this one ?

peer

Is this a BUG REPORT or FEATURE REQUEST ?

BUG REPORT

Environment :

Locally using npm and in the ci using npm. Not present when installing using yarn.

What you expected to happen :

I expected the installation to succeed.

How to reproduce it :

Install @s1seven/schema-tools-certificate-model along with @s1seven/schema-tools-extract-emails@0.4.2 and run npm install.

@eamon0989 eamon0989 added the bug Something isn't working label Sep 18, 2023
@eamon0989 eamon0989 changed the title bug: peer dependency issue with certificate-model and npm install bug: peer? dependency issue with certificate-model and npm install Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant