Skip to content

Fix npm install for 2.6 #2545

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kooliahmd
Copy link

npm install fails with:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @medusajs/[email protected]
npm error Found: @swc/[email protected]
npm error node_modules/@swc/core
npm error   dev @swc/core@"1.5.7" from the root project
npm error   peer @swc/core@"*" from @swc/[email protected]
npm error   node_modules/@swc/jest
npm error     dev @swc/jest@"^0.2.36" from the root project
npm error   1 more (ts-node)
npm error
npm error Could not resolve dependency:
npm error peerOptional @swc/core@"^1.7.28" from @medusajs/[email protected]
npm error node_modules/@medusajs/medusa
npm error   @medusajs/medusa@"2.6.0" from the root project
npm error   peerOptional @medusajs/medusa@"^2.4.0" from @medusajs/[email protected]
npm error   node_modules/@medusajs/test-utils
npm error     dev @medusajs/test-utils@"2.6.0" from the root project
npm error
npm error Conflicting peer dependency: @swc/[email protected]
npm error node_modules/@swc/core
npm error   peerOptional @swc/core@"^1.7.28" from @medusajs/[email protected]
npm error   node_modules/@medusajs/medusa
npm error     @medusajs/medusa@"2.6.0" from the root project
npm error     peerOptional @medusajs/medusa@"^2.4.0" from @medusajs/[email protected]
npm error     node_modules/@medusajs/test-utils
npm error       dev @medusajs/test-utils@"2.6.0" 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 /Users/ahmed.kooli/.npm/_logs/2025-03-07T11_14_46_200Z-eresolve-report.txt

We should either make the started use: @swc/core@^1.7.28 instead of 1.5.7 Or remove it altogether, since the started does not use that dep any way (Only uses swc/jest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant