-
When I run "yarn add ethers", I always get stuck on accessing the "https://github.com/ricmoo/ens-normalize.js.git" resource, and finally the following error occurs.
Can someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
@Dear-MrHe Not sure about this error. Try with npm and see. |
Beta Was this translation helpful? Give feedback.
-
Well, I found out that I added the SSH public key to my account and I was able to push to the repository, but why? I use https. Then I can download ethers with npm, but it still doesn't work with yarn, still the same error. |
Beta Was this translation helpful? Give feedback.
Ok, and when I downloaded ethers with
npm install --save ethers
, it was actually the v6 version, and the following error occurred when I usedconst provider = new ethers.providers.JsonRpcProvider()
to establish a connection with the blockchain.After searching on Google, I found that it was a version problem, and the version of ethers needed to be lowered, so I used the command
yarn add [email protected]
to download ethers correctly.