相关疑难解决方法(0)

react-native:找不到命令

我正在创建-bash: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
Run Code Online (Sandbox Code Playgroud)

我尝试了从下面的链接建议的步骤,但我仍然得到相同的错误.

  1. 反应天然命令未找到

我没有他们在解决方案中指定的任何"npm"目录

Ashoks-MacBook-Pro:share Ashok$ ls
aclocal     doc     info        ruby-build  zsh
autoconf    emacs       man     systemtap
Run Code Online (Sandbox Code Playgroud)

但我发现npm文件存在于以下位置.

/usr/local/Cellar/node/6.1.0/etc/bash_completion.d
Run Code Online (Sandbox Code Playgroud)

我卸载了react-native并再次安装,但我仍面临同样的问题.

android ios react-native

95
推荐指数
10
解决办法
12万
查看次数

标签 统计

android ×1

ios ×1

react-native ×1