Hi Friends đź‘‹,

Welcome To Infinitbility! ❤️

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.

As per react native documents, they are telling you shuld remove react native cli and just use your cammand with npx it will work.

If you previously installed a global react-native-cli package, please remove it as it may cause unexpected issues. - React Native

Today, I’m going to show you How do I remove react native cli globally, as above mentioned here, I’m going to use the npm uninstall cammand to uninstall react native cli.

Let’s start today’s tutorial how do you remove react native cli globally?

As you can see, i have installed react native cli alredy.

To check your react native cli version open your cmd and run npx react-native -v command.

React Native cli, check installed version example
React Native cli, check installed version example

As you can see i have remmoved react native cli from my PC, let’s try to create new react native project.

Using following command i’m going to create react native AwesomeProject project without react native cli.

npx react-native init AwesomeProject
React Native, create new project example
React Native, create new project example

I hope it’s help you, All the best 👍.