Reputation: 3218
How can I uninstall react-native-cli on Mac??
I tried npm uninstall react-native-cli
and it gives me below.
npm WARN [email protected] requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
I want to completely wipe-off my react native environment and re-install it. What should I do?
Upvotes: 19
Views: 73546
Reputation: 13926
Uninstalling global packages
To uninstall an unscoped global package, on the command line, use the uninstall
command with the -g
flag. Include the scope if the package is scoped.
npm uninstall -g react-native-cli
After close commad line and Do turn on commad line
❯ which react-native
# react-native not found
Upvotes: 54
Reputation: 3077
If you need to completely remove react native environment you need to remove CLI
npm uninstall -g react-native-cli @react-native-community/cli
next, remove watchman
brew uninstall watchman
remove Android env:
How to completely uninstall Android Studio on Mac?
remove IOS env:
How to Completely Uninstall Xcode and Clear All Settings
Upvotes: 1