Skip to content

Why can't I access the "https://github.com/ricmoo/ens-normalize.js.git" resource successfully when running "yarn add ethers"? #5551

Answered by Dear-MrHe
Dear-MrHe asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, and when I downloaded ethers with npm install --save ethers, it was actually the v6 version, and the following error occurred when I used const provider = new ethers.providers.JsonRpcProvider() to establish a connection with the blockchain.

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

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.

Replies: 2 comments 19 replies

Comment options

You must be logged in to vote
12 replies
@Dear-MrHe
Comment options

@Dear-MrHe
Comment options

@aaankeet
Comment options

@Dear-MrHe
Comment options

@aaankeet
Comment options

Comment options

You must be logged in to vote
7 replies
@Dear-MrHe
Comment options

@aaankeet
Comment options

@aaankeet
Comment options

@Dear-MrHe
Comment options

Answer selected by Dear-MrHe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants