UNPKG

create-empirica-app

Version:
32 lines (25 loc) 673 B
#!/usr/bin/env node /** * Copyright (c) 2018-present, Nicolas Paton, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; var chalk = require("chalk"); var currentNodeVersion = process.versions.node; var semver = currentNodeVersion.split("."); var major = semver[0]; if (major < 8) { console.error( chalk.red( "You are running Node " + currentNodeVersion + ".\n" + "Create React Empirica requires Node 8 or higher. \n" + "Please update your version of Node." ) ); process.exit(1); } require("./createEmpiricaApp");