mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Bring back global cli module check
Summary: public This was introduced by vjeux on0a5967dand removed on0686b01. I guess it was removed accidentally as this this is a nice warning to have that should prevent n00bs from commiting a common mistake Reviewed By: frantic Differential Revision: D2563885 fb-gh-sync-id: 9fae145bbec587514f118d1d28d076b1d82f0630
This commit is contained in:
committed by
facebook-github-bot-3
parent
b7d1d8248d
commit
2856be9a07
@@ -1,4 +1,14 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
console.error([
|
||||
'\033[31mLooks like you installed react-native globally, maybe you meant react-native-cli?',
|
||||
'To fix the issue, run:\033[0m',
|
||||
|
||||
Reference in New Issue
Block a user