# Step 2: Installing Express

Before we write any code, you'll need to install the Express library. We're going to use the [**Node Package Manager (npm)**](https://www.npmjs.com/)to download it using the **`npm install`** command.

NPM is the place to go to download other Node code written by other people. There are thousands of open-source, 3rd-party Node modules (also known as "packages") by other people that you can download and use in your own projects.

As we install Express, we'll need to update the `package.json` to add Express as a dependency. We do this so that other people working on the project will know to install Express before running any of the code. This can be done by adding **`--save`** to the end of your command.

**Run the following command in your terminal:**<br>

{% code title="Command line" %}

```bash
$ npm install express --save
```

{% endcode %}

Express should now be installed. Check your `package.json` file to make sure it has been added as a dependency. It will look something like this:

![](https://3020657003-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHS9G5i_yavH_76PUdz%2F-LHS9ZE18ugK9klBmojD%2F-LHSSROh8WBaH7eUiYet%2Fimage.png?alt=media\&token=7e53e5b2-135b-4fb3-aadf-ac3efbd71188)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://node-girls.gitbook.io/intro-to-express/intro-to-backend-development-with-node.js/tutorial/step-2-installing-express.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
