Skip to content

'Failed to obtain root' error on Windows #140

@xiety

Description

@xiety

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)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions