[英]Command not found for react-native and create-react-app(Mac OS)
I think I've broken my node/react-native/react PATHs/installation/links and since yesterday I'm trying to figure out what to do.我想我已经破坏了我的 node/react-native/react PATHs/installation/links 并且从昨天开始我试图弄清楚该怎么做。
The errors are:错误是:
zsh: command not found: create-react-app
zsh: command not found: react-native
In my which node
:在我的which node
:
/usr/local/bin/node
My npm get prefix
:我的npm get prefix
:
/Users/username/.npm-packages
My PATH is:我的路径是:
/Users/username/.rvm/gems/ruby-2.3.0/bin:/Users/username/.rvm/gems/ruby-2.3.0@global/bin:/Users/username/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/username/.npm-packages:/usr/local/bin/node:/Users/username/.rvm/bin /Users/username/.rvm/gems/ruby-2.3.0/bin:/Users/username/.rvm/gems/ruby-2.3.0@global/bin:/Users/username/.rvm/rubies/ruby- 2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/username/.npm-packages:/usr/local/bin/node:/Users /用户名/.rvm/bin
EDIT:编辑:
My workaround was uninstalling all the NODE.JS installation我的解决方法是卸载所有 NODE.JS 安装
The following is the best way to completely uninstall node + npm:以下是完全卸载node + npm的最佳方法:
You may need to do the additional instructions as well:您可能还需要执行其他说明:
Try this: npm -g install react-native OR npm i -g react-native-cli试试这个: npm -g install react-native 或 npm i -g react-native-cli
for zsh error: npm install -g react-native-cli对于 zsh 错误: npm install -g react-native-cli
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.