> For the complete documentation index, see [llms.txt](https://wiki.bot-hosting.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.bot-hosting.net/common-issues/cannot-find-module-cannot-open-file-error-on-startup.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wiki.bot-hosting.net/common-issues/cannot-find-module-cannot-open-file-error-on-startup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
