我得到-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 –