When I was trying to create a new react app using npx create-react-app example_app, I get this error
npx create-react-app example_app
[Your cache folder contains root-owned
This worked for me:
sudo npm cache clean --force