katio10
1
Hi after installing node, i get this error while starting expo command.
zsh: command not found: expo
I think it is a problem due to the bash_profile file and I think I have already messed up a lot with this file.
node -v
v14.11.0
npm bin -g
/Users/air/.npm-global/bin
(not in PATH env variable)
I also post the contents of the bash_profile.swp file
b0VIM 8.1¸NrootAir-di-air.home~root/.bash_profile
U3210#"! Utpadù≈Í∆≈
export PATH=/usr/local/bin:${PATH}
can anyone help me with this?
waaj
2
Just check the PATH in ~/.zshrc you have:
export PATH=~/.npm-global/bin:$PATH
then run source ~/.zshrc to update. If zsh is your default shell the next time you login it will remain.
1 Like
katio10
3
Thanks for your help!
it doesn’t work, I added the line to .zshsrc and then gave “source” from the terminal but it always gives me the same error.
➜ ~ source ~ / .zshrc
➜ ~ expo init Mapsfood
zsh: command not found: expo
➜ ~
waaj
4
If npm is in your profile, did you do that after installing Expo? If so uninstall and reinstall expo.
Run: whereis expo
to see where it is. make sure that’s in your path.
system
Closed
5
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.