Uninstalling Expo CLI
Solution 1:
To completely uninstall expo cli
On Windows
- The first step
npm -g uninstall expo-cli --save
(alsoyarn global remove expo-cli
if you use yarn). - Second
cd %USERPROFILE% && rmdir /Q /S .expo
On Mac OS Catalina
-
The first step
npm -g uninstall expo-cli --save
(alsoyarn global remove expo-cli
if you use yarn). -
Second
cd ~ && rm -rf .expo
Thanks to @Александр Наумкин and @Liko for editing and comments
Solution 2:
I had the same problem and after searching I found this command:
npm -g uninstall expo-cli --save
finally expo-cli
is deleted from my pc but it still asks about it every time I type create-react-native-app. if anybody knows how to go on from here be my guest.
and I hope this helps you
edit: if you use react-native init it is almost the same as create-react-native-app without expo-cli
. This is how I chose to carry on as using the create command with expo-cli
gives the application error after error if you install any api.
Solution 3:
npm -g uninstall expo-cli --save
did not work for me, but yarn global remove expo-cli
did.
I expected the npm
option to work, and was surprised when it didn't. I am using nvm
, and wonder if this answer explains why the npm
option didn't work for me.
Solution 4:
if you are using npm then this command will work for uninstalling expo cli
npm -g uninstall expo-cli --save
Solution 5:
I had the same problem once, i have tried
npm -g uninstall expo-cli
but after the my problem didn't get solved, i have searched lot even after that problem did't get solved, i am also using yarn so finally i have decided to remove using the yarn i tried
yarn global remove expo-cli
This indeed solved my issue