cli.js 717 B

12345678910111213
  1. #!/usr/bin/env node
  2. "use strict";
  3. var _path = require("path");
  4. var _path2 = _interopRequireDefault(_path);
  5. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6. var globalMessage = _path2.default.dirname(process.execPath) === _path2.default.dirname(process.env._ || "") ? " -g" : "";
  7. console.error("You have mistakenly installed the `babel` package, which is a no-op in Babel 6.\n" + "Babel's CLI commands have been moved from the `babel` package to the `babel-cli` package.\n" + "\n" + " npm uninstall" + globalMessage + " babel\n" + " npm install --save-dev babel-cli\n" + "\n" + "See http://babeljs.io/docs/usage/cli/ for setup instructions.");
  8. process.exit(1);