Replies: 1 comment
-
I tried many but this worked fine for me. npm config rm proxy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when i "yarn add --dev hardhat", i got the error message:
、、、
yarn add v1.22.19
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/hardhat: getaddrinfo EAI_AGAIN registry.npmjs.org".
info If you think this is a bug, please open a bug report with the information provided in "/home/fangjuan/hh-fcc/hardhat-smartcontract-lottery-fcc/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
、、、
my yarn-error.log is this:
、、、
Arguments:
/home/fangjuan/.nvm/versions/node/v18.18.0/bin/node /home/fangjuan/.cache/node/corepack/yarn/1.22.19/bin/yarn.js add --dev hardhat
PATH:
/home/fangjuan/.nvm/versions/node/v18.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/game:/mnt/c/Users/Administrator/AppData/Local/Programs/Microsoft VS Code/bin
Yarn version:
1.22.19
Node version:
18.18.0
Platform:
linux x64
Trace:
Error: getaddrinfo EAI_AGAIN registry.npmjs.org
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
npm manifest:
{
"name": "hardhat-smartcontract-lottery-fcc",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
}
yarn manifest:
No manifest
Lockfile:
No lockfile
、、、
It's very strange, there was no problem when i "yarn add --dev hardhat" in Lesson 6. I have change my VPN and WIFI , but it did't work.
Have someone can help me?
Beta Was this translation helpful? Give feedback.
All reactions