'npx create-react-app wont work, would be stuck in the middle of progress for hours

So when I execute the command npx create-react-app the-app it would either freeze mid progress or it would take extremely long, where I would leave it for several hours and it would still be installing.

I have tried from clearing the cache, updating npm and npx, uninstalling and reinstalling create-react-app, using create-react-app with npm, using proxy servers, to uninstalling node with the latest version and I still got the same issue.

I have looked around at github issues and other stackoverflow questions for this issue, but I haven't found a satisfactory answer.

the loading screen it would be stuck in for hours specs: windows 11 node 16.14.0 npx 8.5.3 npm 8.5.3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source