ddev: WSL DDEV cant find Win10 DDEV: "ddev.exe not found in $PATH"
Is there an existing issue for this?
- I have searched the existing issues
Run a Diagnostic and Paste Link Here
I have DDEV installed via brew in WSL
$ ddev -v
ddev version v1.21.4
When I delete try to delete docker images I get an error:
$ ddev delete -Oy
ddev.exe not found in $PATH, please install it on Windows side; err=exec: "ddev.exe": executable file not found in $PATH
Volume postgres-snapshot-debug-mariadb for project postgres-snapshot-debug was deleted
However, DDEV is installed in Win10 (via choco)
❯ pwd
D:\code
❯ ddev -v
ddev version v1.21.4
❯ which ddev
CommandType Name Version Source
----------- ---- ------- ------
Application ddev.exe 0.0.0.0 C:\Program Files\DDEV\ddev.exe
Expected Behavior
The error is a false positive and should not be displayed.
Actual Behavior
$ ddev delete -Oy
ddev.exe not found in $PATH, please install it on Windows side; err=exec: "ddev.exe": executable file not found in $PATH
Steps To Reproduce
No response
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (13 by maintainers)
I had this issue right after installing DDEV on both WSL2 and on Windows using PowerShell. I installed it on WSL prior to installing it with PowerShell.
/mnt/c/Program Files/DDEV
was not added to the$PATH
.Edit: Restarting WSL2 added it to the path.
I understand.
gsudo config CacheMode auto
in the docs would some people who can self-debug, and theres a reference for future users.There’s always an option of a simple settings.
manage_hosts: true
.Checks can be good, but harder to maintain. Settings are simple, but can be overlooked / forgotten.