From 8bc608581cb61867158436336076d97a5c4801c5 Mon Sep 17 00:00:00 2001 From: tdzl2003 Date: Sun, 14 Feb 2016 16:49:04 +0800 Subject: [PATCH] add warning if running outside. --- react-native-pushy-cli/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/react-native-pushy-cli/cli.js b/react-native-pushy-cli/cli.js index 365dbad..c13731b 100755 --- a/react-native-pushy-cli/cli.js +++ b/react-native-pushy-cli/cli.js @@ -46,6 +46,7 @@ if (fs.existsSync(cliPath)) { if (cli) { cli.run(); } else { + console.error('Are you at home directory of a react-native project?'); console.error('`pushy install` is under development, please run `npm install react-native-pushy` to install pushy manually.'); process.exit(1); }