{"id":747,"hash":"5a22d5c79c365d09ab2954c474c0b14076be5bb82ff13848a24898c88d33b46f","pattern":"react-native: command not found","full_message":"I am getting -bash: react-native: command not found error while creating a react-native project.\n\nBelow are the additional info\n\n1. brew --version\n   homebrew 0.9.9\n2  brew info watchman\n   watchman `enter code here`stable 4.50\n   /usr/local/Cellar/watchman/4.4.0\n3. brew info flow\n   stable 0.24.1\n   /usr/local/Cellar/flow/0.24.1\n4. brew info node\n   stable 6.1.0\n   /usr/local/Cellar/node/6.1.0\n5. npm -version\n   3.8.6\n6. echo $PATH\n/Users/Ashok/.rbenv/shims:/Users/Ashok/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\n\nI tried the suggested steps from this link but I am still getting the same error.\n\nI don't have any \"npm\" directory which they have specified in the solution\n\nAshoks-MacBook-Pro:share Ashok$ ls\naclocal     doc     info        ruby-build  zsh\nautoconf    emacs       man     systemtap\n\nBut I found npm file exists in the below location.\n\n/usr/local/Cellar/node/6.1.0/etc/bash_completion.d\n\nI uninstalled react-native and installed it again but I am still facing the same issue.","ecosystem":"npm","package_name":"android","package_version":null,"solution":"After adding right path to the PATH variable issue is resolved.\n\nBelow are the steps to find the right path.\n\n1. Enter: npm install -g react-native-cli\noutput: /usr/local/Cellar/node/6.1.0/libexec/npm/bin/react-native ->/usr/local/Cellar/node/6.1.0/libexec/npm/lib/node_modules/react-native-cli/index.js/usr/local/Cellar/node/6.1.0/libexec/npm/lib\n└── react-native-cli@0.2.0 \n\nfrom above output you can clearly see the path: /usr/local/Cellar/node/6.1.0/libexec/npm/bin/react-native\n\nexport PATH=\"/usr/local/Cellar/node/6.1.0/libexec/npm/bin:$PATH\"\n\nreact-native init appName\n\ncd appName\n\nreact-native run-ios\n\nif you getting xcrun: error: unable to find utility \"simctl\" at this stage you can reslove using below steps\n\nXCode -> Preferences -> Locations -> Command Line Tools -> Choose Xcode 7.2.1\n\nYou can find original solution from xcrun unable to find simctl\n\nThanks to @fbozo\n\nThat's It!!!","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/37189081/react-native-command-not-found","votes":219,"created_at":"2026-04-19T04:51:34.619894+00:00","updated_at":"2026-04-19T04:51:34.619894+00:00"}