I have installed expo with this command - npm install expo-cli -g
but when I am writing expo in command line, is writing that expo in not found.
I have tried to install with yarn and it was installed successful but is writing that expo in not found.
I have tried to export PATH to ~/.profile but this did not help me.
What do I need to do to make my expo project?
If it is installed, expo might not be in your PATH.
$ echo $PATH,get the path of your global npm npm config get prefix
add the output of the above command to your .bashrc or .zshrc file.
# replace npm-global-path with the output of npm config get prefix
export PATH=npm-global-path/bin:$PATH
then
# source your .bashrc, .zshr or *.profile
source ~/.bashrc or source ~/.zshrc
Problem Solved with following steps
first of all install expo-cli using the below command line
npm install expo-cli -g
2 after installation of expo-cli set global variable using below command line
export PATH=~/.npm-global/bin:$PATH
Happy Coding!
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