Remove the Global Installation of Create React App

Every time I return to a technology, I find updates—which isn’t necessarily a bad thing—but many of these updates bring along compatibility issues 😵.

That’s the magic of this profession! 🫶 You take a little trip to the «prehistoric» past, and when you return, you realize you’re already outdated.

This time, it happened with React. My terminal returned this error:

You are running create-react-app 5.0.0, which is behind the latest release (5.0.1).

The global installation of Create React App is no longer compatible with React, so it’s necessary to remove it.

Using NPM

				
					npm uninstall -g create-react-app
				
			

Using YARN

				
					yarn global remove create-react-app
				
			

Clear the Cache 🧹

				
					npx clear-npx-cache
				
			

With that done, we can continue creating our new React application ✌.

				
					npx create-react-app your-app-name
				
			
Facebook
Twitter
LinkedIn