mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 10:30:03 +08:00
Merge pull request #90 from scrrlt/docs/windows-lp-troubleshooting
docs: update
This commit is contained in:
23
README.md
23
README.md
@@ -1243,6 +1243,29 @@ npm --version # Should show version number
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Long path names on Windows installation?</b></summary>
|
||||
|
||||
**Problem**
|
||||
|
||||
On Windows, you may encounter errors related to long file paths during installation, such as "The filename or extension is too long" or similar path length issues.
|
||||
|
||||
**Cause**
|
||||
|
||||
Windows has a default limitation on path lengths (260 characters), which can be exceeded by DeepTutor's nested directory structures and dependencies.
|
||||
|
||||
**Solution**
|
||||
|
||||
Enable long path support system-wide by running the following command in an Administrator Command Prompt:
|
||||
|
||||
```cmd
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
|
||||
```
|
||||
|
||||
After running this command, restart your terminal for the changes to take effect.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Frontend cannot connect to backend?</b></summary>
|
||||
|
||||
|
||||
@@ -9,7 +9,9 @@ Quick solutions for common issues.
|
||||
| Backend fails to start | Check Python ≥ 3.10, verify `.env` config |
|
||||
| `npm: command not found` | Install Node.js: `conda install -c conda-forge nodejs` |
|
||||
| Port already in use | Kill process: `lsof -i :8001` → `kill -9 <PID>` |
|
||||
| Long path errors on Windows when cloning the repo or installing dependencies | Enable long paths*: Run as admin `reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f`, then restart your terminal |
|
||||
|
||||
* Restart your terminal and, if the issue persists, log out and back in (or restart Windows) for the registry change to fully take effect.
|
||||
## Connection Issues
|
||||
|
||||
| Problem | Solution |
|
||||
|
||||
Reference in New Issue
Block a user