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

Could not resolve dependency stylelint when using npm for installation #4

Closed
nixprosoft opened this issue Nov 19, 2024 · 3 comments
Closed
Labels

Comments

@nixprosoft
Copy link

Steps to reproduce

npm install

What is expected?

Success installation.

What is actually happening?

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/stylelint
npm error dev stylelint@"16.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer stylelint@"^15.11.0" from [email protected]
npm error node_modules/stylelint-codeguide
npm error dev stylelint-codeguide@"0.3.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\nikit\AppData\Local\npm-cache_logs\2024-11-19T12_54_21_072Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\nikit\AppData\Local\npm-cache_logs\2024-11-19T12_54_21_072Z-debug-0.log

Additional data

NodeJS Version: LTS 22
Package manager: npm 10.9.0
System: Win 10

@nixprosoft nixprosoft added bug Something isn't working support labels Nov 19, 2024
@yagnikvamja
Copy link
Member

Hello @nixprosoft ,

We highly recommend using pnpm as it offers better resolution of peer dependencies.

While we consistently maintain our library, but npm is unable to resolve peer dependencies. To address this issue using npm, please run the following command as it helps in resolving peer dependencies.

npm install --legacy-peer-deps

This should allow the installation to proceed without errors.

~Best regards,

Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

@github-actions github-actions bot added the stale label Nov 28, 2024
Copy link

github-actions bot commented Dec 5, 2024

This issue has been automatically marked as closed because it has no recent activity.

@github-actions github-actions bot closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants