Skip to content

unable to use plugin with Node 22.4.0 #1114

Closed
sveltejs/svelte-eslint-parser
#681
@seanlail

Description

@seanlail

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.20.1

What version of eslint-plugin-svelte are you using?

2.46.1

What did you do?

I tried to update to the latest version of eslint-plugin-svelte and I get an error:

 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

This error happened while installing a direct dependency of /Users/xxx/xxx

Your Node version is incompatible with "[email protected]".

Expected version: ^18.20.4 || ^20.18.0 || >=22.10.0
Got: v22.4.0

This is happening because the package's manifest has an engines.node field specified.

Due to the change in this PR: #885

What did you expect to happen?

It should be installable on Node 22

What actually happened?

Unable to install

Link to GitHub Repo with Minimal Reproducible Example

N/A

Additional comments

No response

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