text: #!/usr/bin/env node
  
  /**
   * Copyright (c) 2015-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  //   /!\ DO NOT MODIFY THIS FILE /!\
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  //
  // create-react-app is installed globally on people's computers. This means
  // that it is extremely difficult to have them upgrade the version and
  // because there's only one global version installed, it is very prone to
  // breaking changes.
  //
  // The only job of create-react-app is to init the repository and then
  // forward all the commands to the local version of create-react-app.
  //
  // If you need to add a new command, please add it to the scripts/ folder.
  //
  // The only reason to modify this file is to add more warnings and
  // troubleshooting information for the `create-react-app` command.
  //
  // Do not make breaking changes! We absolutely don't want to have to
  // tell people to update their global version of create-react-app.
  //
  // Also be careful with new language features.
  // This file must work on Node 0.10+.
  //
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  //   /!\ DO NOT MODIFY THIS FILE /!\
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  'use strict';
  
  /**
   *   这个项目是用来产生 react 单页应用脚手架 的 cli工具
   *
   *   1.注意顶部的环境声明，配合 package.json 的 bin 可以为 npm i -g 和 npx 提供执行支持
   *
   *   2.检查 node 版本号，如果 主版本号低于10 则退出程序
   *
   *   3.验证通过，执行 init 函数
   * */
  
  var currentNodeVersion = process.versions.node;
  var semver = currentNodeVersion.split('.');
  var major = semver[0];
  
  if (major < 10) {
    console.error(
      'You are running Node ' +
        currentNodeVersion +
        '.\n' +
        'Create React App requires Node 10 or higher. \n' +
        'Please update your version of Node.'
    );
    process.exit(1);
  }
  
  const { init } = require('./createReactApp');
  
  init();
  