# Cannot find module / Cannot open file error on startup

This usually means you have forgotten to do one of two things:

1. You haven't set your main file in the startup tab, your main file is the file that is used to start your bot (in Node the file that you run with `node <your file>` and for Python `py <your file>.` Remember that if you unarchived your files in to a folder, you may need to move them out of that folder.
2. Your modules haven't installed. For node.js this usually means you've forgotten to upload your `package.json` and `package-lock.json` files in the home directory (`/home/container`) or you are getting an error upon your modules install which you should look for. For Python this usually means you haven't uploaded a `requirements.txt` file with each dependency on a new line (or you can specify your requirements in the startup tab under `Additional Dependencies` with a space between each one).


---

# 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://wiki.bot-hosting.net/common-issues/cannot-find-module-cannot-open-file-error-on-startup.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.
