File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,12 @@ function _installCLIFromLocalRegistry {
239239 fi
240240 setNpmRegistryUrlToLocal
241241 changeNpmGlobalPath
242+ # set longer timeout to avoid socket timeout error
243+ npm config set fetch-retries 5
244+ npm config set fetch-timeout 600000
245+ npm config set fetch-retry-mintimeout 30000
246+ npm config set fetch-retry-maxtimeout 180000
247+ npm config set maxsockets 1
242248 npm install -g @aws-amplify/cli-internal
243249 echo " using Amplify CLI version: " $( amplify --version)
244250 npm list -g --depth=1 | grep -e ' @aws-amplify/amplify-category-api' -e ' amplify-codegen'
Original file line number Diff line number Diff line change @@ -8699,9 +8699,9 @@ axe-core@=4.7.0:
86998699 integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==
87008700
87018701[email protected] , axios@^1.0.0, axios@^1.7.4:
8702- version "1.7.4 "
8703- resolved "https://registry.npmjs.org /axios/-/axios-1.7.4 .tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2 "
8704- integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw ==
8702+ version "1.8.3 "
8703+ resolved "https://registry.yarnpkg.com /axios/-/axios-1.8.3 .tgz#9ebccd71c98651d547162a018a1a95a4b4ed4de8 "
8704+ integrity sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A ==
87058705 dependencies:
87068706 follow-redirects "^1.15.6"
87078707 form-data "^4.0.0"
You can’t perform that action at this time.
0 commit comments