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

'Failed to obtain root' error on Windows #140

Closed
xiety opened this issue Sep 29, 2022 · 1 comment
Closed

'Failed to obtain root' error on Windows #140

xiety opened this issue Sep 29, 2022 · 1 comment

Comments

@xiety
Copy link

xiety commented Sep 29, 2022

Sometimes process.cwd() returns path with a small drive letter, like d:\

And this regex !/^[A-Z]:\\$/.test(cwdDrive) is failed to match it.

Possible solution is to use this regex !/^[A-Za-z]:\\$/.test(cwdDrive)

if (!/^[A-Z]:\\$/.test(cwdDrive)) {

@meixger
Copy link

meixger commented Oct 25, 2022

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

2 participants