I've spent over 20 hours trying to solve this problem. I live in a rural area that doesn't get WiFi, and so I use a satellite hotspot that allows me to 500kbps-1mbps download speeds - which is okay for most things that I do.
Basically, I try and install create-react-app using the command just above the snippet and I make some progress for about 10 minutes and then I get this error (ERR_SOCKET_TIMEOUT). You will see I add an increased timeout parameter, seemingly does nothing and I have tried every single possible solution on the web but am willing to try more as my entire coding future depends on getting this to work (how else will I learn react if I can't install it?).
I am so frustrated I can't even put it into words. Although it takes awhile, I have no problem downloading 200mb files elsewhere I cannot understand why this won't work for me. My connection is solid, it is just a bit slow.
Please help I am at a loss at what to do, like I said I have easily spent 20, maybe 30 hours at this point trying different solutions. I am going INSANE! I am about 10 more hours away from crying in a corner.
I just want to reiterate is seems that the timeout feature is doing absolutely nothing for me in terms of whether or not it times out. Although there could be a different mechanic that is making this fail because of my bad/low-speed connection.
What I've tried so far, none of the below solutions seem to work for me.
Installing dependencies one by one. This doesn't work because some dependencies that are crucially needed, still timeout.
Appending '-timeout=12000000' to the npx create-react-app command
Following the following sequence of commands
- npm cache clean --force
- npm install create-react-app
- npx create-react-app my-app
Following the following sequence of commands
- npm cache clean --force
- npm install --force
Following the following sequence of commands
- npm config get proxy
- npm config rm proxy
- npm config rm https-proxy
Following the following sequence of commands
- npm cache clean --force
- npx create-react-app my-app
Following the following sequence of commands
- npm install -g yarn
- yarn global add create-react-app
- yarn create-react-app my-app
C:\Users\moutfleet>npx create-react-app my-app -timeout=12000000
C:\Users\moutfleet>npx create-react-app my-app -timeout=12000000
Creating a new React app in C:\Users\moutfleet\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\moutfleet\AppData\Local\npm-cache\_logs\2022-10-15T08_51_04_262Z-debug-0.log
CodePudding user response:
have you tried using yarn to install?
CodePudding user response:
Please any advice is appreciated