Uninstalling Expo CLI

隐身守侯 提交于 2020-01-13 07:51:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!