-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Bump minimal Node version to 6 #1897
Changes from 1 commit
f36d25f
e9adb19
15db7b2
709d3c2
1689736
b1d8941
53c90ad
1c6bbf2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,15 +43,15 @@ var chalk = require('chalk'); | |
var currentNodeVersion = process.versions.node; | ||
var semver = currentNodeVersion.split('.'); | ||
var major = semver[0]; | ||
var minor = semver[1]; | ||
// var minor = semver[1]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can delete this now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
|
||
if (major < 4 || (major === 4 && minor < 7)) { | ||
if (major < 6) { | ||
console.error( | ||
chalk.red( | ||
'You are running Node ' + | ||
currentNodeVersion + | ||
'.\n' + | ||
'Create React App requires Node 4.7 or higher. \n' + | ||
'Create React App requires Node 6 or higher. \n' + | ||
'Please update your version of Node.' | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an npm call here somewhere. Let's change it to require npm 3 at least. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes you're correct: https://github.com/facebookincubator/create-react-app/blob/master/packages/create-react-app/createReactApp.js#L400-L419. What would you like the behavior to be on npm < 3? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's quite the process in a similar way as the Node message above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ cd "$root_path" | |
nodeVersion=`node --version | cut -d v -f2` | ||
nodeMajor=`echo $nodeVersion | cut -d. -f1` | ||
nodeMinor=`echo $nodeVersion | cut -d. -f2` | ||
if [[ nodeMajor -lt 4 ]] || [[ nodeMajor -eq 4 && nodeMinor -lt 7 ]] | ||
if [[ nodeMajor -lt 6 ]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we also delete Node 4 tasks from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've removed the Node 4 tasks from |
||
then | ||
cd $temp_app_path | ||
err_output=`node "$root_path"/packages/create-react-app/index.js test-node-version 2>&1 > /dev/null || echo ''` | ||
|
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.
Is this new language appropriate now that we require Node 6?
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.
Yep!