Lesson 9 Adding dependecies error #626
-
When i try to add the dependencies in the terminal using "yarn add --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" i run into these errors: When i try to run it multiple times, the error changes as to what cannot be found.. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
After deleting my hardhat-smartcontract-lottery-fcc about 4 times and going through the install process of hardhat and trying to install the dependencies, it just randomly worked. Is there any other way to figure out this issue other than just deleting and retrying to install hardhat and the dependecies till it works? I feel like there is a way better solution to this problem other than what i did. |
Beta Was this translation helpful? Give feedback.
-
@armontej the issue you ran into is most likely to be an issue with the Similar issue was also discussed in the StackOverFlow, you can view it from here |
Beta Was this translation helpful? Give feedback.
-
Just try this next time, npm install --save-dev --force @nomiclabs/hardhat-waffle 'ethereum-waffle@^3.0.0' @nomiclabs/hardhat-ethers 'ethers@^5.0.0' |
Beta Was this translation helpful? Give feedback.
@armontej the issue you ran into is most likely to be an issue with the
.yarnrc
or.npmrc
config files of the package manager. A working solution was discussed in the official yarnpkg/yarn repo, you can find the reason why it happened and how to fix it hereSimilar issue was also discussed in the StackOverFlow, you can view it from here