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

install fails if node version >20.x.x even if it claims it supports up to 22.x.x (current lts) #24

Open
jacopomazzoni opened this issue Dec 13, 2024 · 2 comments
Labels
issue: bug Issue reporting a bug severity: medium status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@jacopomazzoni
Copy link

jacopomazzoni commented Dec 13, 2024

Bug report

Required System information

  • Node.js version: 20.18.1
  • NPM version: 10.8.2
  • Strapi version: 5.5.1
  • Database: sqlite
  • Operating system: macos
  • Is your project Javascript or Typescript: TS

Describe the bug

installing using yarn as described in the homepage throws an error on the latest node 24 that strapi supports versions 18-22.
switching to 22 allows to get to the install wizard up to a certain point when it throws this error:
error @strapi/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.0.0 <=20.x.x". Got "22.12.0"

then you need to downgrade to node 20, then it works,
suboptimal experience, is there a valid reason why @strapi/[email protected] wants node version 20 instead of 22 or could this requirement be removed? or made clearer at the first check?

Steps to reproduce the behavior

  1. install node 22
  2. run yarn create strapi
  3. See error

Expected behavior

either require node 22 or 20, make up your mind

Screenshots

na

Code snippets

na

Additional context

na

@derrickmehaffy
Copy link
Member

Transferring this issue to the proper repo

@derrickmehaffy derrickmehaffy transferred this issue from strapi/strapi Dec 13, 2024
@derrickmehaffy derrickmehaffy added issue: bug Issue reporting a bug status: confirmed Confirmed by a Strapi Team member or multiple community members severity: medium labels Dec 13, 2024
@github-project-automation github-project-automation bot moved this to To be reviewed (Open) in Developer Experience Squad Dec 13, 2024
@derrickmehaffy derrickmehaffy moved this from To triage to Backlog in Strapi 5 - Bug Tracker Dec 13, 2024
@thanhnd1o2
Copy link

I got the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
Status: To be reviewed (Open)
Status: Backlog
Development

No branches or pull requests

3 participants