feat(docs): add guidance for using --linker isolated flag during Bun installation in monorepo setup

This commit is contained in:
Melvin Chia
2025-11-17 09:39:24 +08:00
parent 82a8a2ec93
commit daedfe35dc

View File

@@ -89,9 +89,17 @@ First, clone the LifeForge monorepo to your local machine or your server. You ca
Then, install the dependencies by running the following command:
<Code language="bash">
{'cd lifeforge && bun install'}
{'cd lifeforge && bun install --linker isolated'}
</Code>
<Warning>
### Using `--linker isolated`
By default, Bun uses a global cache for dependencies. However, in a monorepo setup like LifeForge, this can lead to issues with dependency resolution. To avoid these issues, we recommend using the `--linker isolated` flag when installing dependencies. This will ensure that each package in the monorepo has its own isolated set of dependencies to prevent phantom dependency issues.
When doing deployment on a server, make sure to always use the `--linker isolated` flag when running `bun install`.
</Warning>
That's pretty much it for the installation of the system itself. Now, let's move on to the installation of the database.
</section>