mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 01:15:00 +08:00
[global-cli] Link to docs on Node version mismatch
This commit is contained in:
3
react-native-cli/index.js
vendored
3
react-native-cli/index.js
vendored
@@ -224,7 +224,8 @@ function checkNodeVersion() {
|
||||
if (!semver.satisfies(process.version, packageJson.engines.node)) {
|
||||
console.error(chalk.red(
|
||||
'You are currently running Node %s but React Native requires %s. ' +
|
||||
'Please use a supported version of Node.'
|
||||
'Please use a supported version of Node.\n' +
|
||||
'See https://facebook.github.io/react-native/docs/getting-started.html'
|
||||
),
|
||||
process.version,
|
||||
packageJson.engines.node);
|
||||
|
||||
Reference in New Issue
Block a user