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
Require Node >=14, <=16 to install Strapi #13962
Conversation
Node engine in package.json is actually set to >=14.19.1. Does Strapi require that as a minimum? If so I'll check the point version as well. |
Codecov Report
@@ Coverage Diff @@
## master #13962 +/- ##
=======================================
Coverage 55.58% 55.58%
=======================================
Files 1275 1275
Lines 31824 31824
Branches 5732 5732
=======================================
Hits 17688 17688
Misses 12322 12322
Partials 1814 1814
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
On further review, I discovered that other versions of node (12 and 18) do actually work to generate a new project, but node 18 fails to install dependencies (and provides the node engine error). Given that, I don't know if I support preventing the behaviour entirely (with process.exit), I think it makes more sense to provide a warning when not using officially supported versions, but to attempt to proceed. Thoughts? |
I largely disagree because if we gracefully allow users to continue (we used to) then naturally if they hit bugs, then they open issues about a version we don't support before we are ready to support it. This caused a ton of overhead for us in the past and our stance was simply we will allow/support/add support for the node version when it becomes LTS just the same as we remove support when a versions EOL is reached. Both of these time frames are regular and scheduled by node themselves. https://nodejs.org/en/about/releases/ EG Node 18 becomes LTS on October 2022 and it's at this point where we can add support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's working just like I would expect. Nice
What does it do?
>=12.x.x <=16.x.x
to>=14.19.1 <=16.x.x
>=12
to instead use the version from the generated package.jsonWhy is it needed?
We should notify users when they're using an unsupported version of node.
How to test it?
Run create-strapi-app with different versions of node installed
Related issue(s)/PR(s)
Nothing open