Skip to content

Commit 16a97c8

Browse files
Kevin LackerFacebook Github Bot 6
authored andcommitted
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 facebook#7859 Differential Revision: D3379234 fbshipit-source-id: 4fb6e5bae20904871c9c4f7504013dc18b1fe707
1 parent c55e364 commit 16a97c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-native-cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if (cli) {
108108
default:
109109
console.error(
110110
'Command `%s` unrecognized. ' +
111-
'Did you mean to run this inside a react-native project?',
111+
'Make sure that you have run `npm install` and that you are inside a react-native project.',
112112
commands[0]
113113
);
114114
process.exit(1);

0 commit comments

Comments
 (0)