To completely uninstall expo cli
On Windows
- The first step
npm -g uninstall expo-cli --save(alsoyarn global remove expo-cliif 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-cliif you use yarn).Second
cd ~ && rm -rf .expo
Thanks to @Александр Наумкин and @Liko for editing and comments
Answer from Amir133 on Stack OverflowTo completely uninstall expo cli
On Windows
- The first step
npm -g uninstall expo-cli --save(alsoyarn global remove expo-cliif 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-cliif you use yarn).Second
cd ~ && rm -rf .expo
Thanks to @Александр Наумкин and @Liko for editing and comments
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.
Ive been trying to install expo on mac for the past 3 hours and am now just trying to uninstall it since nothing has worked. Here is the error i get when i try to run "sudo npm -g uninstall explo-cli --save"
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/CharlieGunn/npm-global/lib/node_modules/expo-cli
npm ERR! dest /Users/CharlieGunn/npm-global/lib/node_modules/.expo-cli-dCHueSY8
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/CharlieGunn/npm-global/lib/node_modules/expo-cli' -> '/Users/CharlieGunn/npm-global/lib/node_modules/.expo-cli-dCHueSY8'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/CharlieGunn/.npm/_logs/2022-02-04T00_26_03_105Z-debug.log
I made a big mistake - I wanted to view my app on a device, and was having trouble with X-Code refusing to recognise my developer credentials. They were fine on the website, but X-Code didn't want a bar of it. So I got frustrated, and someone suggested "Why not use Expo? Then you can just scan a QR code". Oh boy, should have done more research than a quick read of the Expo website before going along with that one! It took 10 minutes after I'd installed Expo to realise I really don't want this.
How do you get rid of Expo from a project that was generated by RN CLI and was half completed before I installed Expo? I haven't done anything I need to keep since installing Expo, so I tried doing a hard reset from the remote git repo I was using (which I had committed to last BEFORE trying Expo), but that didn't work, for reasons I am still trying to work out.
expo eject and npm run eject are both no longer supported, it seems.
» npm install expo-cli