Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect path to PowerShell.exe when mounting point for drive C isn't default in WSL 2 #218

Closed
kuzalekon opened this issue Feb 3, 2021 · 4 comments

Comments

@kuzalekon
Copy link
Contributor

The #217 PR broke ability to start ReactJS app in dev mode for me. When trying to start it using yarn start command I get an error:

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

...

As we can see from message - powershell.exe not found. That happened because I'm didn't use default mounting point for drive C. My mounting point for C is different - /c instead of /mnt/c.
But the #217 PR change dynamically determination of mounting point to constant (see 53 line)
Mounting point should be determined dynamically as it be in v7.3.0.

@sindresorhus
Copy link
Owner

// @anaisbetts

@anaisbetts
Copy link
Contributor

I'll see what I can do tomorrow

@kuzalekon
Copy link
Contributor Author

@anaisbetts The #219 PR will fix this problem. Please review it. Thanks in advance!

@kuzalekon
Copy link
Contributor Author

Fixed by #219 PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants