npx cannot read property 'loaded' of undefined code example
Example: npx create app not working eperm operation not permitted mkdir
Try installing it globally first, using the command
npm install -g create-react-app
And then, you can create your app using the command,
npx create-react-app <Name of your app>