0

I have a big problem trying to deploy a react app to a azure app service with visual studio azure app service extension, im getting this error

info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/date-fns/-/date-fns-2.0.0-alpha.27.tgz: ESOCKETTIMEDOUT".

Im using yarn and i read that increase the network timeout maybe solve this. But how i can do it?

Pixysve
  • 88
  • 12

3 Answers3

0

I am using yarn and i read that increase the network timeout maybe solve this. But how i can do it?

You can try running it in your terminal :

$ yarn install --network-timeout 1000000

And also try to clear the cache by running the below cmd

$ yarn cache clean
$ yarn // to install dependencies, no need for "yarn install"

Please refer the below links for more information:

.yarn is having troubles with the network connection | SO THREAD .

. React deployment keeps failing with ESOCKETTIMEDOUT | MS Q&A

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15
0

Try to NOT run build on Azure. Do this by answering NO when you publish. enter image description here

Have you already made the settings to build on Azure (answered yes) .. undo by deleting the following files

.vscode\settings.json

.deployment

Joakim
  • 513
  • 1
  • 6
  • 10
0

Create the file .yarnrc, and write into file:

network-timeout 1000000

Save file & deploy your app with the file