【问题标题】:Deploy error An unexpected error occurred: "ESOCKETTIMEDOUT". App Service Azure部署错误发生意外错误:“ESOCKETTIMEDOUT”。应用服务 Azure
【发布时间】:2021-11-21 20:19:20
【问题描述】:

我在尝试使用 Visual Studio azure 应用服务扩展将 React 应用部署到 azure 应用服务时遇到一个大问题,我收到此错误

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".

我正在使用纱线,我读到增加网络超时可能会解决这个问题。但是我该怎么做呢?

【问题讨论】:

    标签: reactjs azure deployment yarnpkg


    【解决方案1】:

    我正在使用纱线,我读到可能会增加网络超时 解决这个问题。但是我该怎么做呢?

    您可以尝试在您的终端中运行它:

    $ yarn install --network-timeout 1000000
    

    并且还尝试通过运行以下 cmd 来清除cache

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

    更多信息请参考以下链接:

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

    React deployment keeps failing with ESOCKETTIMEDOUT | MS Q&A

    【讨论】:

      猜你喜欢
      • 2023-03-04
      • 2017-07-17
      • 2011-07-17
      • 2019-09-11
      • 2012-09-05
      • 2018-08-29
      • 2021-11-07
      • 1970-01-01
      • 2021-09-18
      相关资源
      最近更新 更多