-
im on lec 7 i typed in
and then
i dont get my node modules files nor package.json |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
In a new directory, first check if your yarn and node versions are okay. If so: Run (make sure the path is correct in the terminal): 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 |
Beta Was this translation helpful? Give feedback.
-
You may have either a package.json in a parent directory, or a hardhat.config.js already in a parent directory (or both). To fix, run: yarn hardhat --verbose delete them, and then run: yarn add --dev hardhat |
Beta Was this translation helpful? Give feedback.
-
I solved the issue with remove old folder and start with |
Beta Was this translation helpful? Give feedback.
You may have either a package.json in a parent directory, or a hardhat.config.js already in a parent directory (or both).
To fix, run:
yarn hardhat --verbose
and this will tell you where your package.json/hardhat config is.
delete them, and then run:
yarn add --dev hardhat
yarn hardhat