Add Node >= 4 requirement to package.json and packager/package.json

Summary: When you try to install these with old Node you'll now get a message from npm telling you that your version of Node is old. This makes it more obvious what's going on and hopefully reduces the number of issues we get due to people using an old version of Node.
Closes https://github.com/facebook/react-native/pull/3296

Reviewed By: @​svcscm

Differential Revision: D2526500

Pulled By: @vjeux

fb-gh-sync-id: 036e10a8d1819ea082e419cd328a458202f0e071
This commit is contained in:
James Ide 2015-10-09 14:42:33 -07:00 committed by facebook-github-bot-7
parent c612d830bb
commit 4f0a7250cc
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,9 @@
"type": "git",
"url": "git@github.com:facebook/react-native.git"
},
"engines": {
"node": ">=4"
},
"jest": {
"scriptPreprocessor": "jestSupport/preprocessor.js",
"setupEnvScriptFile": "jestSupport/env.js",

View File

@ -6,6 +6,9 @@
"type": "git",
"url": "git@github.com:facebook/react-native.git"
},
"engines": {
"node": ">=4"
},
"jest": {
"setupEnvScriptFile": "jestSupport/env.js",
"testPathIgnorePatterns": [