Skip to content

NPM ELSPROBLEMS with node v24 #5100

@marvin-grvn

Description

@marvin-grvn

Q&A (please complete the following information)

  • OS: windows / linux
  • Method of installation: npm
  • Swagger-UI version: 5.31.0

Content & configuration

node v24.13.0
npmv11.6.2

Example Swagger/OpenAPI definition:

Describe the bug you're encountering

npm ls tree-sitter

our package
└─┬ swagger-ui@5.31.0
└─┬ swagger-client@3.36.0
└─┬ @swagger-api/apidom-reference@1.2.1
├─┬ @swagger-api/apidom-parser-adapter-json@1.2.1
│ ├─┬ tree-sitter-json@0.24.8
│ │ └── tree-sitter@0.21.1 deduped invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2
│ └── tree-sitter@0.22.4
└─┬ @swagger-api/apidom-parser-adapter-yaml-1-2@1.2.1
├─┬ @tree-sitter-grammars/tree-sitter-yaml@0.7.1
│ └── tree-sitter@0.21.1 deduped invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2, "^0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2/node_modules/@tree-sitter-grammars/tree-sitter-yaml
└── tree-sitter@0.21.1 invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2, "^0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2/node_modules/@tree-sitter-grammars/tree-sitter-yaml
npm error code ELSPROBLEMS
npm error invalid: tree-sitter@0.21.1 [...]\node_modules\tree-sitter

To reproduce...

Steps to reproduce the behavior:
npm i swagger-ui
npm ls --all or npm ls tree-sitter

Expected behavior

Screenshots

Image

Additional context or thoughts

The pinned dependency in apidom-parser-adapter-yaml-1-2 is causing this error:
https://github.com/swagger-api/apidom/blob/main/packages/apidom-parser-adapter-yaml-1-2/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions