yarn remove create-react-app code example
Example: yarn remove create-react-app
To uninstall it completely try running
sudo npm uninstall -g create-react-app
some times this command may not remove the package completely. if so just check the directory where its located by
which create-react-app
and it will give you some directory like /usr/local/bin/create-react-app. just remove it manually by
rm -rf /usr/local/bin/create-react-app
now you can install create-react-app by
npm install -g create-react-app
but however, it is not recommended to install it globally from v3.3.0.so just use
npx create-react-app