【发布时间】:2019-09-04 20:15:29
【问题描述】:
$ react-native -v
-bash: react-native: 找不到命令
$ brew --version
Homebrew 2.1.0
Homebrew/homebrew-core (git revision c2b3; last commit 2019-04-14)
Homebrew/homebrew-cask (git revision 8953; last commit 2019-04-14)
$ which node
/usr/local/bin/node
$ ls -l $(which node)
lrwxr-xr-x 1 kishore admin 31 Apr 14 11:17 /usr/local/bin/node -> ../Cellar/node/11.14.0/bin/node
$ echo $PATH
/usr/local/share/npm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/openssl/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/openssl/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
我已经尝试了以下建议,但没有运气: react-native: command not found
Error when installed react-native-cli command not found
react-native not found + mac os
-bash: react-native: command not found
请帮忙,我是 React-Native 的新手。我能够构建项目,但在 brew update 之后,我陷入了困境,无法继续进行。
【问题讨论】:
标签: react-native