I installed the expo cli with
npm i -g exp
then I run
exp
and I get
-bash: exp: command not found
I'm guessing I didn't add exp to path. So how do I do this properly? Nothing I've tried so far works.
Find the path where expo is globally installed by npm: npm bin -g 2. Add path from Step 1 to paths file: sudo vi /etc/paths 3. Restart the Terminal Share Improve this answer Follow edited Nov 24 '20 at 20:16 Rap 6,39022 gold badges4747 silver badges8181 bronze badges
Run expo --version to determine what version you are currently working with. The commands listed below are derived from the latest version of Expo CLI. You can view the list of commands available with your version in your terminal using expo --help. To learn more about a specific command and its options use expo [command] --help.
You can view the list of commands available with your version in your terminal using expo --help. To learn more about a specific command and its options use expo [command] --help. Deprecated: Use app.config.js to switch config files instead. Specify which template to use.
So to start to upgrade the Expo CLI, type: Once you’ve pressed return you’ll see a bunch of messages show up and it will whirr away for a good few minutes while it updates everything. Mine took a good 5 minutes and half way through it seemed to sit and do nothing – just leave it alone for a while, it is updating!
try sudo npm install --global expo-cli
this worked for me.
➜ MobileDev git:(campaigns-responsive) ✗ expo whoami
› Not logged in, run expo login to authenticate
➜ MobileDev git:(campaigns-responsive) ✗ expo init App
✔ Choose a template: › blank a minimal app as clean as an empty canvas
✔ Downloaded and extracted project files.
📦 Using npm to install packages.
✔ Installed JavaScript dependencies.
✅ Your project is ready!
To run your project, navigate to the directory and run one of the following npm commands.
- cd App
- npm start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- npm run android
- npm run ios
- npm run web
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With