create-node-app
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -14,10 +14,11 @@ #!/usr/bin/env node | ||
const cwd = process.cwd() | ||
const semver = require('semver') | ||
if (process.versions.node.split('.')[0] < 8) { | ||
console.error( | ||
chalk.red(` | ||
You are running Node ${process.versions.node}. | ||
create-node-app requires Node 8 or higher. | ||
Please update your version of Node. | ||
`) | ||
// Target the same node version that react-scripts targets | ||
if (!semver.satisfies(process.version, '>=8.10.0')) { | ||
console.log( | ||
chalk.red( | ||
`You are using Node ${process.version}, which is not supported by Create Node App.\n\n` + | ||
`Please update to Node 8.10 or higher.\n` | ||
) | ||
) | ||
@@ -43,3 +44,3 @@ process.exit(1) | ||
async function createApp(appName, verbose) { | ||
async function createApp (appName, verbose) { | ||
checkAppName(program.name(), appName) | ||
@@ -46,0 +47,0 @@ const useYarn = await shouldUseYarn() |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Create Node.js apps by running one command", | ||
@@ -17,2 +17,3 @@ "main": "index.js", | ||
"fs-extra": "^7.0.1", | ||
"semver": "^6.0.0", | ||
"validate-npm-package-name": "^3.0.0" | ||
@@ -19,0 +20,0 @@ }, |
52855
448
5
+ Addedsemver@^6.0.0
+ Addedsemver@6.3.1(transitive)