问题
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
回答1:
if you are using npm then this command will work for uninstalling expo cli
npm -g uninstall expo-cli --save
回答2:
I had the same problem and after searching I found this command:
npm -g uninstall expo-cli --save
finaly expo-cli is deleted from my pc but it still asks about it everytime 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.
回答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.
回答4:
for completely uninstall expo cli
first
use this in cmd
npm -g uninstall expo-cli --save
second
go to <windwos drive>\Users\<yourUser>\ and then remove .expo folder
来源:https://stackoverflow.com/questions/52476154/uninstalling-expo-cli