# 1. Setting up the Hardhat environment

{% hint style="warning" %}
Make sure you have installed [Node.js](https://nodejs.org/en/download) and [npm ](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)on your system before proceeding with this guide.
{% endhint %}

1. Install Hardhat&#x20;

```
npm install --save-dev hardhat
```

2. Create a Hardhat project

```
npx hardhat
```

3. Press enter on `Create a JavaScript project`

```
888    888                      888 888               888
888    888                      888 888               888
888    888                      888 888               888
8888888888  8888b.  888d888 .d88888 88888b.   8888b.  888888
888    888     "88b 888P"  d88" 888 888 "88b     "88b 888
888    888 .d888888 888    888  888 888  888 .d888888 888
888    888 888  888 888    Y88b 888 888  888 888  888 Y88b.
888    888 "Y888888 888     "Y88888 888  888 "Y888888  "Y888

Welcome to Hardhat v2.17.1

? What do you want to do? …
▸ Create a JavaScript project
  Create a TypeScript project
  Create an empty hardhat.config.js
  Quit

```

{% hint style="warning" %}
Make sure you install the hardhat toolbox by running

```
npm install --save-dev @nomicfoundation/hardhat-toolbox
```

{% endhint %}

If the process is successful, you will see the text `Project created` 🎉
