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

fyi: npm bug manifesting as conflicting peerDependency version #461

Open
moshe-foreflight opened this issue Dec 26, 2024 · 1 comment
Open

Comments

@moshe-foreflight
Copy link

moshe-foreflight commented Dec 26, 2024

Installation alongside tree-sitter-objc fails, reporting a conflicting peerDependency version for the tree-sitter dependency.

This is likely due to this bug in npm. Reporting here:

  1. because I've been able to work around this issue by installing tree-sitter-cli. (No idea why this works.)
  2. perhaps someone with more node knowledge/experience can make it better.

Repro

This will fail:

brew install node;
mkdir tree-sitter-repro && cd tree-sitter-repro;
npm init -y;
npm i tree-sitter-objc;
npm i tree-sitter-swift;

Expected Behavior/Parse Tree

Installation of the package should succeed.

Workaround

If we run npm i tree-sitter-cli and try again, then npm i tree-sitter-swift succeeds.

Environment

  • tree-sitter 0.24.5
  • node v23.5.0
  • npm 10.9.2
  • macOS 14.5
@alex-pinkus
Copy link
Owner

Thanks for reporting — will try to find some time to sort it out.

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

No branches or pull requests

2 participants