我得到-bash:react-native:命令未找到错误创建react-native项目时。react-native:命令未找到
下面是其他信息
1. brew --version
homebrew 0.9.9
2 brew info watchman
watchman `enter code here`stable 4.50
/usr/local/Cellar/watchman/4.4.0
3. brew info flow
stable 0.24.1
/usr/local/Cellar/flow/0.24.1
4. brew info node
stable 6.1.0
/usr/local/Cellar/node/6.1.0
5. npm -version
3.8.6
6. echo $PATH
/Users/Ashok/.rbenv/shims:/Users/Ashok/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
我试图从提出以下链接步骤,但仍然我得到同样的错误。
我没有他们的解决方案
Ashoks-MacBook-Pro:share Ashok$ ls
aclocal doc info ruby-build zsh
autoconf emacs man systemtap
指定任何“故宫”的目录,但我发现下面的位置NPM文件存在英寸
/usr/local/Cellar/node/6.1.0/etc/bash_completion.d
我卸载react-native并再次安装,但仍面临同样的问题。
您是否尝试过'npm我-g react-native-cli'而不是'npm我-g react-native'? –
我正在使用“sudo npm install -g react-native-cli” –
嗯..不知道,但也许检查此线程http://stackoverflow.com/questions/33282545/bash-react-native-command-not-found –