# Updating

Updating the mirror to get the latest updates is easy, just run:

```
git pull && npm install
```

This will sync the remote changes from whatever branch you are on (most likely `master`) to your local machine. This will also install/update any new or updated dependencies.

#### Encountering errors when trying to run the mirror after an update?

Sometimes new dependencies are added to the mirror or old ones are updated. In this case you need to update/install them:

```
npm update
npm install
```

#### Still having problems?

Occasionally there can be strange issues with the changes in dependencies. In this case the easiest thing to do would be to clean your repository. This will remove all uncommitted changes (except for your config file) and re-install all dependencies:

```
git clean -xdf -e config.json
npm install
```


---

# 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://docs.smart-mirror.io/updating.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.
