Replies: 2 comments
-
I think you tried installing these dependencies in "/projects/dec-raffle/contract" instead of "/projects/dec-raffle". Try installing these dependencies (run your command npm install...) in /projects/dec-raffle because this is the folder where your hardhat is installed not /projects/dec-raffle/contract. I hope this should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oops, I'm sorry I misunderstood some of the details you mentioned above. Maybe something's wrong with your Node.js installation or npm Installation. Check them with "node --version" and "npm --version" once |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`/projects/dec-raffle/contract
$ npm install --save-dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers @nomiclabs/hardhat-etherscan @nomiclabs/hardhat-waffle chai ethereum-waffle hardhat hardhat-contract-sizer hardhat-deploy hardhat-gas-reporter prettier prettier-plugin-solidity solhint solidity-coverage dotenv @typechain/ethers-v5 @typechain/hardhat @types/chai @types/node ts-node typechain typescript
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: contract@1.0.0
npm ERR! Found: @nomiclabs/hardhat-ethers@0.4.1npm ERR! node_modules/@nomiclabs/hardhat-ethersnpm ERR! dev @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @nomiclabs/hardhat-waffle@"*" from the root project
npm ERR!
the root project
npm ERR!
npm ERR! Conflicting peer dependency: @nomiclabs/hardhat-ethers@2.2.3
npm ERR! node_modules/@nomiclabs/hardhat-ethersnpm 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
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2024-01-11T12_02_50_941Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\User\AppData\Local\npm-cache_logs\2024-01-11T12_02_50_941Z-debug-0.log
`
Beta Was this translation helpful? Give feedback.
All reactions