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 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.
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.
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
» npm install expo-updates