Hi Lewatle, Yarn has a flag that lets you increase the timeout as needed. For example, this will increase the timeout to 5mins (300,000 milliseconds)
"yarn install --network-timeout 300000" You could also try even larger numbers. If that doesn't work, then it could be that your server has network issues. Your server needs to be able to access the internet in order to run "yarn install", as that command downloads many dependencies required to build/run the DSpace 7 user interface. Tim ________________________________ From: [email protected] <[email protected]> on behalf of Lewatle Johannes Phaladi <[email protected]> Sent: Friday, October 21, 2022 8:58 AM To: DSpace Technical Support <[email protected]> Subject: [dspace-tech] yarn install "timeout error" Installing DSpace 7.4 on Ubuntu 22.04 Dear DSpace Team, how to resolve yarn timeout error, the server has network connection /dspace-angular-dspace-7.4$ yarn install yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... error An unexpected error occurred: "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.11.2.tgz: ESOCKETTIMEDOUT". info If you think this is a bug, please open a bug report with the information provided in "/dspace/install/dspace-angular-dspace-7.4/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. vi /dspace/install/dspace-angular-dspace-7.4/yarn-er ror.log "ts-node": "10.2.1" }, "dependencies": { "@angular/animations": "~13.2.6", "@angular/cdk": "^13.2.6", "@angular/common": "~13.2.6", "@angular/compiler": "~13.2.6", "@angular/core": "~13.2.6", "@angular/forms": "~13.2.6", "@angular/localize": "13.2.6", "@angular/platform-browser": "~13.2.6", "@angular/platform-browser-dynamic": "~13.2.6", "@angular/platform-server": "~13.2.6", "@angular/router": "~13.2.6", "@babel/runtime": "^7.17.2", "@kolkov/ngx-gallery": "^2.0.1", "@material-ui/core": "^4.11.0", "@material-ui/icons": "^4.9.1", "@ng-bootstrap/ng-bootstrap": "^11.0.0", "@ng-dynamic-forms/core": "^15.0.0", "@ng-dynamic-forms/ui-ng-bootstrap": "^15.0.0", "@ngrx/effects": "^13.0.2", "@ngrx/router-store": "^13.0.2", "@ngrx/store": "^13.0.2", "@nguniversal/express-engine": "^13.0.2", "@ngx-translate/core": "^13.0.0", "@nicky-lenaers/ngx-scroll-to": "^9.0.0", "@types/grecaptcha": "^3.0.4", "angular-idle-preload": "3.0.0", "angulartics2": "^12.0.0", "axios": "^0.27.2", "bootstrap": "4.3.1", "caniuse-lite": "^1.0.30001165", "cerialize": "0.1.18", "cli-progress": "^3.8.0", "compression": "^1.7.4", "cookie-parser": "1.4.5", "core-js": "^3.7.0", "deepmerge": "^4.2.2", "express": "^4.17.1", "express-rate-limit": "^5.1.3", "fast-json-patch": "^3.0.0-1", "file-saver": "^2.0.5", "filesize": "^6.1.0", "font-awesome": "4.7.0", "http-proxy-middleware": "^1.0.5", "https": "1.0.0", "js-cookie": "2.2.1", "js-yaml": "^4.1.0", "json5": "^2.1.3", "jsonschema": "1.4.0", "jwt-decode": "^3.1.2", "klaro": "^0.7.10", "lodash": "^4.17.21", "markdown-it": "^13.0.1", "markdown-it-mathjax3": "^4.3.1", "mirador": "^3.3.0", "mirador-dl-plugin": "^0.13.0", "mirador-share-plugin": "^0.11.0", "moment": "^2.29.4", "morgan": "^1.10.0", "ng-mocks": "^13.1.1", -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/d2807e4f-b226-4d05-8788-1a4d30858bc3n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/d2807e4f-b226-4d05-8788-1a4d30858bc3n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB3274E187C0BB68C681EBF7B5ED2D9%40PH0PR22MB3274.namprd22.prod.outlook.com.
