mirror of
https://github.com/status-im/react-native.git
synced 2025-02-03 13:14:42 +00:00
Bring back global cli module check
Summary: public This was introduced by vjeux on 0a5967d and removed on 0686b01. 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:
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',
|
||||
|
@ -45,6 +45,9 @@
|
||||
"lint": "eslint Examples/ Libraries/",
|
||||
"start": "./packager/packager.sh || true"
|
||||
},
|
||||
"bin": {
|
||||
"react-native": "local-cli/wrong-react-native.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"absolute-path": "^0.0.0",
|
||||
"babel": "^5.8.23",
|
||||
|
Loading…
x
Reference in New Issue
Block a user