我已经成功安装了brew、node 4.0+、watchman和flow,当我安装npm install -g react-native-cli
时,我收到了以下信息:
/Users/home/.node/bin/react-native -> /Users/home/.node/lib/node_modules/react-native-cli/index.js
react-native-cli@0.1.5 /Users/home/.node/lib/node_modules/react-native-cli
└── prompt@0.2.14 (revalidator@0.1.8, pkginfo@0.3.1, read@1.0.7, winston@0.8.3, utile@0.2.1)
因此,我假设react-native-cli
也已成功安装.然而,当我运行react-native
时,它说:
-bash: react-native: command not found
我的 node 版本是4.2.1、watchman 3.9、brew 0.9.5(git 7ed6)和npm 2.14.7