Skip to main content
Added yarn syntax
Source Link
SYED ASAD KAZMI
  • 5.8k
  • 2
  • 7
  • 22

Since, the version of your @nomiclabs/hardhat-ethers package is older and referencing the ethers.js v5. So, instead of ethers.js v6, you've to install ethers.js v5.

For doing that, you can just execute this commandeither of these commands, depending on whether you're using yarn or npm:

Using yarn:

yarn add [email protected]

Using npm:

npm install [email protected]

Since, the version of your @nomiclabs/hardhat-ethers package is older and referencing the ethers.js v5. So, instead of ethers.js v6, you've to install ethers.js v5.

For doing that, you can just execute this command:

npm install [email protected]

Since, the version of your @nomiclabs/hardhat-ethers package is older and referencing the ethers.js v5. So, instead of ethers.js v6, you've to install ethers.js v5.

For doing that, you can just execute either of these commands, depending on whether you're using yarn or npm:

Using yarn:

yarn add [email protected]

Using npm:

npm install [email protected]
Source Link
SYED ASAD KAZMI
  • 5.8k
  • 2
  • 7
  • 22

Since, the version of your @nomiclabs/hardhat-ethers package is older and referencing the ethers.js v5. So, instead of ethers.js v6, you've to install ethers.js v5.

For doing that, you can just execute this command:

npm install [email protected]