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.
The errors are:
zsh: command not found: create-react-app
zsh: command not found: react-native
In my which node
:
/usr/local/bin/node
My 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
EDIT:
My workaround was uninstalling all the NODE.JS installation
The following is the best way to completely uninstall node + npm:
- go to /usr/local/lib and delete any node and node_modules
- go to /usr/local/include and delete any node and node_modules directory
- if you installed with brew install node, then run brew uninstall node in your terminal
- check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
- go to /usr/local/bin and delete any node executable
You may need to do the additional instructions as well:
- sudo rm /usr/local/bin/npm
- sudo rm /usr/local/share/man/man1/node.1
- sudo rm /usr/local/lib/dtrace/node.d
- sudo rm -rf ~/.npm
- sudo rm -rf ~/.node-gyp
- sudo rm /opt/local/bin/node
- sudo rm /opt/local/include/node
- sudo rm -rf /opt/local/lib/node_modules
- sudo rm -rf /usr/local/include/node/
npm install -g react-native-cli
again ?