Skip to content

"yarn add --dev hardhat" doesn't install hardhat correctly #175

Answered by PatrickAlphaC
LordReya asked this question in Q&A
Discussion options

You must be logged in to vote

Can you please format your copy-pasted code questions instead of screenshotting them as we show here? Thanks

And this is a common issue we've seen that we go over in the video here.

You have either a package.json in a parent directory, or a hardhat.config.js already in a parent directory.

To fix, run:

yarn hardhat --verbose

and this will tell you where your hardhat config is.

Could you please update your question with copy-pasted code so others can find your question? Thanks for asking!

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Magofoco
Comment options

@PatrickAlphaC
Comment options

@LordReya
Comment options

@LordReya
Comment options

@PatrickAlphaC
Comment options

Answer selected by LordReya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants