Skip to content
New issue

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

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

Already on GitHub? Sign in 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: [email protected]
npm ERR! node_modules/ethers
npm ERR! peer ethers@"^6.1.0" from @nomicfoundation/[email protected]
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/[email protected]
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/[email protected]
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.

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

No branches or pull requests

2 participants