Create-react-app: Check Node version early

Created on 14 Oct 2018  路  10Comments  路  Source: facebook/create-react-app

We need to add better Node version checks. The current one doesn鈥檛 cover all requirements (like Node >= 8.9.0).

claimed starter good first issue enhancement

Most helpful comment

@zivkaziv there's #5482 and #5501 already it looks like. Thanks though!

All 10 comments

@gaearon, are the checks supposed to be changed under engines in package.json files?

Do I understand it correctly? If yes, I'd be happy to contribute.

Hey guys, is someone working on it? I'll be happy to contribute

@zivkaziv there's #5482 and #5501 already it looks like. Thanks though!

Hey guys, this one is available? Regards!

Hey @maximilianotulian yes this is available. You should be able to base your work on #5430. Sorry we lost track of this

Thanks @ianschmitz, I will give it a try

Hey @maximilianotulian yes this is available. You should be able to base your work on #5430. Sorry we lost track of this

Sorry i meant #5501 @maximilianotulian

@gaearon IMO, the pre-install script can check node version and exit if it doesn't find suitable node version.

Hey, do I understand correctly the issue? Looks like you are not satisfied with the current version checker (NOT the node version itself)? I took a look into the PRs that was done here and all of them updating the node version. Only this one https://github.com/facebook/create-react-app/pull/5501/files improved version checker, but it was not approved. Could anybody tell me what was wrong with it (apart of yarn.lock in .gitignore)?

@ianschmitz Can I try this one? Would love to contribute here!

Seems like there is now a check for v10 for node here. Would you like to have specific warnings for other node versions like 8.9.0 etc. If I understand the issue correctly?

I think https://github.com/facebook/create-react-app/issues/9614 can also be looked at under a PR made for this issue.

Was this page helpful?
0 / 5 - 0 ratings