I have installed Expo CLI globally and cant start a new react native app without using expo cli and therefore would like to uninstall it from my system. I have spent hours trying to work out how to removeit globally from my system
You can eject expo running the command npm run eject on the console. Make sure you'll choose the option React Native: I'd like a regular React Native project and then rename your project accordingly. You'll see a few questions on the console about the ejecting task: How would you like to eject your app?
Expo CLI is a command-line interface between a developer and Expo tools. It is used for a variety of tasks, such as: To run a project's development server, view logs, open the app in a simulator, etc., during the development phase of an app. Logging into your Expo account.
To remove react native cli globally, just use the npm uninstall -g react-native-cli command in your cmd or terminal it will uninstall react native cli from your computer.
To completely uninstall node + npm is to do the following: go to /usr/local/lib and delete any node and node_modules. go to /usr/local/include and delete any node and node_modules directory. if you installed with brew install node, then run brew uninstall node in your terminal.
To completely uninstall expo cli
On Windows
npm -g uninstall expo-cli --save
(also yarn global remove expo-cli
if you use yarn).cd %USERPROFILE% && rmdir /Q /S .expo
On Mac OS Catalina
The first step npm -g uninstall expo-cli --save
(also yarn global remove expo-cli
if you use yarn).
Second cd ~ && rm -rf .expo
Thanks to @Александр Наумкин and @Liko for editing and comments
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