构建并安装本地Chainlink节点时出现ESOCKETTIMEDOUT错误
make install That ESOCKETTIMEDOUT error you're hitting is a classic npm network timeout issue—npm can't reach the registry to pull down the @material-ui/icons@4.5.1 package. Here are practical, actionable steps to resolve this:
Clear npm's cached data first
Corrupted cache might be causing unexpected hangs. Wipe it clean with this command:npm cache clean --forceSwitch to a faster npm registry
The default npm registry can be slow or unstable depending on your network. Try using a reliable mirror to speed things up:npm config set registry https://registry.npmmirror.com/If you don't want to set it globally, pass the registry directly when running
make install:npm_config_registry=https://registry.npmmirror.com/ make installIncrease npm's timeout thresholds
Give npm more time to retry fetching packages by adjusting these config values:npm config set fetch-retry-mintimeout 20000 # Minimum 20s before retry npm config set fetch-retry-maxtimeout 120000 # Maximum 2min before giving upManually download the problematic package
If switching registries doesn't work, grab the package directly and place it in npm's cache:- Find your npm cache directory with:
npm config get cache - Download the
icons-4.5.1.tgzfile to your local machine - Attempt a quick
make installonce to let npm create the necessary cache subdirectories, then replace the partial/failed file with your downloaded copy - Re-run
make install—npm will use the cached package instead of trying to download it again
- Find your npm cache directory with:
Verify your network connection
Test if you can reach the package URL directly with:curl -v https://registry.npmjs.org/@material-ui/icons/-/icons-4.5.1.tgzIf this times out too, try switching networks (e.g., wired instead of Wi-Fi) or configuring a proxy if you're behind a corporate firewall.
After trying any of these steps, re-run make install and the timeout issue should be resolved.
内容的提问来源于stack exchange,提问作者sourabh yadav

