From 16a97c80274ef50493b30e1b4871ba4bbae1f447 Mon Sep 17 00:00:00 2001 From: Kevin Lacker Date: Thu, 2 Jun 2016 17:43:00 -0700 Subject: [PATCH] Update error message on unrecognized commands Summary: Thanks for submitting a pull request! Please provide enough information so that others can review your pull request: (You can skip this if you're fixing a typo or adding an app to the Showcase.) Kevin: This isn't quite a typo, but it's a change to an error message. In my experience, frequently when this error message is displayed, the command is unrecognized because I haven't run npm install, I just checked out a repo of someone else's. We could just update this error message a bit, and I think it would improve the developer experience. Closes https://github.com/facebook/react-native/pull/7859 Differential Revision: D3379234 fbshipit-source-id: 4fb6e5bae20904871c9c4f7504013dc18b1fe707 --- react-native-cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 56ab767a8..c9cd36c27 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -108,7 +108,7 @@ if (cli) { default: console.error( 'Command `%s` unrecognized. ' + - 'Did you mean to run this inside a react-native project?', + 'Make sure that you have run `npm install` and that you are inside a react-native project.', commands[0] ); process.exit(1);