I have followed the standard procedure (npm uninstall -g create-react-app and
yarn global remove create-react-app) to remove my previous global installation of create-react-app using yarn as shown in the screenshot below. I have also checked that the following directory does not exist: /usr/local/bin/create-react-app.
However, I still get errors when using npx create-react-app myapp, saying that I am running create-react-app 4.0.0.
which create-react-app
also outputs nothing.