This happened to me as well. Bad thing is, I can’t recall if it was before or after I’ve opened the profile with the current test release (the one with usability changes).

What I did was, I edited some files in the Windows Desktop app. Close Joplin, launched WSL and wanted to export my notes into a git repo folder. Then I got that CLI error. Tried updating but no luck.