Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug?] error Error: getaddrinfo EAI_AGAIN registry.npmjs.org #9061

Open
douyongpeng opened this issue May 20, 2024 · 1 comment
Open

[bug?] error Error: getaddrinfo EAI_AGAIN registry.npmjs.org #9061

douyongpeng opened this issue May 20, 2024 · 1 comment

Comments

@douyongpeng
Copy link

douyongpeng commented May 20, 2024

market@DESKTOP-GH1EHJ0:/mnt/d/chainlink_project/hh-fcc/hardhat-fundme-fcc$ yarn add --dev @typechain/hardhat
yarn add v1.22.22
warning package.json: No license field
warning hardhat-fund-me-fcc: No license field
[1/4] Resolving packages...
error Error: getaddrinfo EAI_AGAIN registry.npmjs.org
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

my registry :

market@DESKTOP-GH1EHJ0:/mnt/d/chainlink_project/hh-fcc/hardhat-fundme-fcc$ yarn config get registry
warning package.json: No license field
https://registry.yarnpkg.com

when use yarn add commmand :

yarn add --dev pkgName

it will always thrown a error like that twice a time, once success and once failed ,it's so hard when add many pkgName.

so ,who can help me to fixed it.
thanks for you

Although I can create a local cache, if it fails, the package will not be cached:

yarn config set yarn-offline-mirror "~/yarn-offline-mirror"
yarn config set yarn-offline-mirror-pruning true
@Daniel15
Copy link
Member

Daniel15 commented May 24, 2024

That error means the DNS lookup timed out. You'd probably see the same error with npm too. You could try change your computer's DNS server (for example, to Cloudflare's 1.1.1.1) and see if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants