Phew๐ , I've finally found a way to create a react app or installing large packages on nodejs while having a bad network connection.
Today I became very frustrated by this issue while trying to setup an environment for a frontend project, I tried using pnpm for the first time and it actually solved the problem.
Today I got to understand that npm uses a timeout session while downloading a package but pnpm although it uses a timeout session but also uses a retry function to download packages which is better when having network failures or delays.
Top comments (0)