Commit 10eae80e authored by Conor Hastings's avatar Conor Hastings Committed by Christopher Chedeau
Browse files

add node engine to package.json and call checkNodeVersion function in cli (#88)

parent a35ac928
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
......@@ -112,6 +112,8 @@ function run(root, appName, version, verbose) {
return;
}
checkNodeVersion();
var scriptsPath = path.resolve(
process.cwd(),
'node_modules',
......@@ -157,5 +159,6 @@ function checkNodeVersion() {
process.version,
packageJson.engines.node
);
process.exit(1);
}
}
......@@ -4,6 +4,9 @@
"description": "Configuration and scripts for Create React App.",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
"engines": {
"node": ">=4"
},
"bugs": {
"url": "https://github.com/facebookincubator/create-react-app/issues"
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment