【发布时间】:2015-11-22 02:35:11
【问题描述】:
我正在尝试安装 react-native。我已经按照这里的所有步骤操作了:https://facebook.github.io/react-native/docs/getting-started.html#content
当我使用这个命令时:
react-native newProject
我收到以下错误:
-bash: react-native: command not found.
我认为不正确的路径是这个错误的根源,但我不知道如何纠正它。非常感谢任何帮助
我已经看过这个问题但无法理解:Error when installed react-native-cli command not found
【问题讨论】:
-
您是否使用 -g 选项安装了 react-native?
-
是的,我已经安装了 -g 选项
-
您是否使用 sudo / su 安装了任何组件(homebrew、io.js、nvm、react-native)?
标签: facebook react-native