'npx hardhat doesnt creates a new project
I tried creating a new hardhat project. I tried the following commands in terminal.
npm init --yes
npm install --save-dev hardhat
But when I use the following command
npx hardhat
I think hardhat have changed the contents. Couldnt find anything in the official document.
Can someone suggest how to create a new project using hardhat.
Edit: Contents of the folder
Solution 1:[1]
run
$ npx hardhat --verbose
You will get the location of a hardhat config file like this:
$ hardhat:core:config Loading Hardhat config from /home/lyon/hardhat.config.js +0ms
Delete it and run npx hardhat again
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jeremy Caney |