Skip to content

Fix backend npm install ERESOLVE peer dependency conflict#89

Open
Vedhant26 wants to merge 1 commit into
avishek0769:mainfrom
Vedhant26:fix/backend-npm-conflict
Open

Fix backend npm install ERESOLVE peer dependency conflict#89
Vedhant26 wants to merge 1 commit into
avishek0769:mainfrom
Vedhant26:fix/backend-npm-conflict

Conversation

@Vedhant26
Copy link
Copy Markdown

@Vedhant26 Vedhant26 commented May 29, 2026

What changed

  • Added a .npmrc file to the backend/ directory.
  • Set legacy-peer-deps=true inside .npmrc.

Why

When running npm install in the backend, it fails with an ERESOLVE error because of a peer dependency conflict between mem0ai@2.4.6 and @qdrant/js-client-rest. The mem0ai package enforces strict older peer dependencies.

By adding .npmrc with legacy-peer-deps=true, it resolves the issue by allowing npm to accept an incorrect but functional dependency resolution without breaking the installation process.

How to test

Run the relevant test suite:

�ash id=t1x9ab cd backend npm install

Expected result:

  • The installation should complete successfully without any ERESOLVE peer dependency errors.

Screenshots (if UI change)

N/A (Backend/API/Logic change only)

Related issue

Closes #88


Pre-Submission Checklist

  • Branch named following GSSoC convention: fix/backend-npm-conflict
  • Changes committed with meaningful commit message
  • Changes pushed to remote fork
  • Relevant tests executed successfully
  • Code follows project contribution guidelines

@avishek0769
Copy link
Copy Markdown
Owner

@Vedhant26 See carefully, your PR includes commits for resolving other issues. Remove those commits of 23rd and 27th May and only keep the relevant commit(s).
Moreover the project uses pnpm not npm so remove the package-lock.json file.

@avishek0769 avishek0769 added easy This issue is easy to solve SSoC26 Social Summer of Code - 2026 labels May 29, 2026
@Vedhant26 Vedhant26 force-pushed the fix/backend-npm-conflict branch from 5363b28 to 954d00e Compare May 29, 2026 21:20
@Vedhant26
Copy link
Copy Markdown
Author

Hi @avishek0769! Thanks for the feedback. I've removed the unrelated commits from the 22nd and 26th of May, and deleted the package-lock.json file since the project uses pnpm. The PR now only contains the specific .npmrc fix for the peer dependency conflict!

@Vedhant26
Copy link
Copy Markdown
Author

Ah, good catch! I've updated the PR description to reflect the pnpm command. Thank you for reviewing!

@avishek0769
Copy link
Copy Markdown
Owner

Okay, nice. I will merge it in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy This issue is easy to solve SSoC26 Social Summer of Code - 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix backend npm install ERESOLVE peer dependency conflict

2 participants