# How to troubleshoot symbolic link issues on Windows

If you're using Cal.com self hosting instance on windows, you might be struggling with Prisma Environment variables not working. One of the reasons why this happens is because by default, symbolic links are disabled on windows OS.

To test the state of symbolic links configuration in your local repo, please run the following command from your root

```bash
git config --get core.symlinks
```

This should return `false`. If that is the case, you can follow one of the two following methods to enable symbolic links

### Enable symbolic links

#### Create a new clone with symbolic links enabled (Recommended)

Please use the following steps to clone the repo with symbolic links:

1. Open your `gitbash` with elevated privileges (Admin) and run the following command:

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">git clone -c core.symlinks=true https://github.com/calcom/cal.com.git
   </code></pre>
2. Complete the installation by following the post clone steps mentioned in [Installation](/docs/introduction/quick-start/self-hosting/installation.md#development-setup-and-production-build).

#### Enable symbolic links in your existing cloned repo

This is quite tricky, and not the recommended way of troubleshooting this issue. Please use the following steps to troubleshoot:

1. Open your `gitbash` with elevated privileges (Admin), go to your Cal.com project root and run the following command:

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">git config core.symlinks true
   </code></pre>
2. Now run the following command and confirm that it returns `true`&#x20;

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">git config --get core.symlinks
   </code></pre>
3. Next, simply remove the .env file located in `packages/prisma/`&#x20;
4. Finally, run the following command to restore the .env file but as a symbolic link

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">git restore packages/prisma/.env
   </code></pre>

That's it. Your symbolic link should now be working as expected.


---

# 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://calcom.gitbook.io/docs/how-to-guides/how-to-troubleshoot-symbolic-link-issues-on-windows.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.
