diff --git a/packages/create-react-app/index.js b/packages/create-react-app/index.js index e6295ec519c..0fb61d60f1d 100644 --- a/packages/create-react-app/index.js +++ b/packages/create-react-app/index.js @@ -142,10 +142,10 @@ function run(root, appName, version, verbose, originalDirectory) { var packageToInstall = getInstallPackage(version); var packageName = getPackageName(packageToInstall); - install(packageToInstall, verbose, function (code, command, args) { + install(packageToInstall, verbose, function(code, command, args) { if (code !== 0) { console.error('`' + command + ' ' + args.join(' ') + '` failed'); - return; + process.exit(1); } checkNodeVersion(packageName);