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 will work: sudo chown -R 1000:1000 "~/.npm"
sudo chown -R 1000:1000 "~/.npm"