From 256cb1865637ed8e268ab1a4ab1d877c4491ca02 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Sat, 6 Feb 2016 19:09:14 -0800 Subject: [PATCH] Improve the error messaging for using the wrong CLI script. --- packages/babel/cli.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/babel/cli.js b/packages/babel/cli.js index a24280bb2b..92c1235cd0 100755 --- a/packages/babel/cli.js +++ b/packages/babel/cli.js @@ -1,4 +1,10 @@ #!/usr/bin/env node -console.error("The CLI has been moved into the package `babel-cli`. See http://babeljs.io/docs/usage/cli/"); +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 babel\n" + + " npm install babel-cli\n" + + "\n" + + "See http://babeljs.io/docs/usage/cli/ for setup instructions."); process.exit(1);