Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

npm Error #27

Open
ranjansmygit opened this issue Nov 21, 2023 · 2 comments
Open

npm Error #27

ranjansmygit opened this issue Nov 21, 2023 · 2 comments

Comments

@ranjansmygit
Copy link

Error encountered:

npm i -D @nomiclabs/hardhat-waffle
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: ethers@6.8.1
npm ERR! node_modules/ethers
npm ERR! peer ethers@"^6.1.0" from @nomicfoundation/hardhat-chai-matchers@2.0.2
npm ERR! node_modules/@nomicfoundation/hardhat-chai-matchers

It seems a long list error, how that's need to be overdone.

@ranjansmygit
Copy link
Author

npm install --save-dev @nomiclabs/hardhat-waffle 'ethereum-waffle@^3.0.0' @nomiclabs/hardhat-ethers 'ethers@^5.0.0' @types/sinon-chai@^3.2.3

@sandeepV2
Copy link

npm install -D @nomiclabs/hardhat-waffle --legacy-peer-deps

There is upstream dependency conflict with ethers 6.8.1 .

npm ERR! Could not resolve dependency:
npm ERR! peer ethers@"^5.0.0" from @nomiclabs/hardhat-ethers@2.2.3
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR! dev @nomiclabs/hardhat-ethers@"" from the root project
npm ERR! peer @nomiclabs/hardhat-ethers@"^2.0.0" from @nomiclabs/hardhat-waffle@2.0.6
npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR! dev @nomiclabs/hardhat-waffle@"
" from the root project

used --legacy-peer-deps to get away with it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants