I'm developing a **Nestjs** micro-service and need to run the build in **dist** folder using below command and it's working fine

```
node dist/main.js

```

Problem is, above command not working without the **node\_modules** folder. Why can't we run the the build folder(**dist**) without node\_modules folder?

This is the error I'm getting
[![enter image description here](https://i.stack.imgur.com/wBwab.png)](https://i.stack.imgur.com/wBwab.png)