Skip to content

Commit 9df0eb5

Browse files
committed
Fix hardhat init command syntax
Remove the extra dashes from 'npx hardhat --init' to the correct 'npx hardhat init' command.
1 parent 672c5ec commit 9df0eb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ai/pages/smart-contracts-dev-environments-hardhat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Before setting up Hardhat, make sure the following are installed:
5757
yarn add --dev hardhat@^2.27.0 @nomicfoundation/hardhat-toolbox
5858
5959
# Initialize a Hardhat project
60-
npx hardhat --init
60+
npx hardhat init
6161
```
6262

6363
3. You will be prompted to select certain configurations for your project. To quickly create a working setup, you can accept the default answers, which will create a JavaScript project, initialize it in the current directory, add a `.gitignore`, and install all dependencies.

smart-contracts/dev-environments/hardhat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Before setting up Hardhat, make sure the following are installed:
5656
yarn add --dev hardhat@^2.27.0 @nomicfoundation/hardhat-toolbox
5757
5858
# Initialize a Hardhat project
59-
npx hardhat --init
59+
npx hardhat init
6060
```
6161

6262
3. You will be prompted to select certain configurations for your project. To quickly create a working setup, you can accept the default answers, which will create a JavaScript project, initialize it in the current directory, add a `.gitignore`, and install all dependencies.

0 commit comments

Comments
 (0)