uninstalled a global react-native-cli code example
Example 1: how to uninstall react native cli globally
npm uninstall -g react-native-cli
Example 2: how to remove global react-native-cli package
yarn global remove @react-native-community/cli
npm uninstall -g react-native-cli
yarn global remove @react-native-community/cli