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
This commit is contained in:
Kevin Lacker 2016-06-02 17:43:00 -07:00 committed by Facebook Github Bot 6
parent c55e3649dd
commit 16a97c8027

View File

@ -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);