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
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope of the package is scoped.
Unscoped package
npm uninstall --save <package_name>
Scoped package
npm uninstall --save <@scope/package_name>
if need to know more about it then follow official Document here https://docs.npmjs.com/uninstalling-packages-and-dependencies#removing-a-local-package-from-the-packagejson-dependencies
npm uninstall <package name> works. It removes the expo module from your node_modules
for more reference https://docs.npmjs.com/uninstalling-packages-and-dependencies
I think you might want to overwrite your current folder while you building.
Try and use the --force extension in your command and that will resolve the problem. I presume something like : npm install -g --force expo-cli
I hope that will help.
I am using linux , Ubuntu i tried
sudo npm install -g --force expo-cli
it worked for me.
» npm install expo-cli
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.
Please confirm OS. Mine is Windows 10.
Look in appdata for yarn or npm install directories. You can find the globally installed package files and delete expo.
Essentially an npm or yarn version other than the one you're using has installed the expo-cli and now your current version can't find it.
I solved this by deleting the expo files in that dir
Had the same problem. Here's how I decided it ( Win 10 )
- Open cmd as administrator and type
npm cache verify - After that type
npm -g uninstall expo-cli --save, if it freezing terminate it. - Remove from your user folder ".expo" folder.
- Than try
npm -g uninstall expo-cli --savein cmd, if it freezing terminate it and open some expo project. - type
yarn remove global expo-cliand thenyarn add global expo-cliin the project
Hope it helps somebody else too.