hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

Plugin @nomicfoundation/hardhat-ignition-ethers requires the following dependencies

Open Asad45AsRa opened this issue 1 year ago • 8 comments

Version of Hardhat

Hardhat version 2.9.9

What happened?

F:\BlockChain World\LearningFold4\hardhat>npx hardhat help Error HH801: Plugin @nomicfoundation/hardhat-ignition-ethers requires the following dependencies to be installed: @nomicfoundation/hardhat-ignition, @nomicfoundation/ignition-core. Please run: npm install --save-dev "@nomicfoundation/hardhat-ignition@^0.15.0" "@nomicfoundation/ignition-core@^0.15.0"

Minimal reproduction steps

plese resolve that Uploading Screenshot (515).png…

Search terms

No response

Asad45AsRa avatar Jul 14 '24 11:07 Asad45AsRa

Hey @Asad45AsRa, can you give us more context here, are you trying to install @nomicfoundation/hardhat-ignition?

Or is it that you are trying to update the toolbox?

kanej avatar Jul 15 '24 08:07 kanej

Seeing this as well when trying to install the latest toolbox following the docs

@kanej I'm using yarn

sebastiantf avatar Jul 31 '24 18:07 sebastiantf

Seeing this as well when trying to install the latest toolbox following the docs

What package manager are you using? Is this npm/yarn/pnpm?

kanej avatar Aug 01 '24 09:08 kanej

updated original comment

sebastiantf avatar Aug 01 '24 12:08 sebastiantf

updated original comment

yarn doesn't automatically install peer dependencies as npm does. The equivalent install for yarn for the @nomicfoundation/hardhat-toolbox toolbox would be:

yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6

kanej avatar Aug 05 '24 08:08 kanej

But I used the same yarn command on the docs that also includes the long list incl peer deps

sebastiantf avatar Aug 05 '24 08:08 sebastiantf

But I used the same yarn command on the docs that also includes the long list incl peer deps

I have done a run through locally on a new Hardhat project, installed via yarn and with then installed @nomicfoundation/hardhat-toolbox with the command above. I didn't see an error message - it installed cleanly.

What error message are you seeing?

kanej avatar Aug 05 '24 09:08 kanej

Oh yeah a fresh new hardhat project worked. I was trying to run the install command / upgrade deps in an existing hardhat project. I did try removing node_modules and lockfile. Still same.

In the end, ended up generating a new HH project and copying over the deps list in package.json

sebastiantf avatar Aug 05 '24 09:08 sebastiantf

No dependency issues were detected for Hardhat 3 during testing

michalbrabec avatar Aug 25 '25 14:08 michalbrabec