Skip to content

process.env.windir is undefined in some shells #58

@linojon

Description

@linojon

running node in a bash shell, for example, function getRegExePath() (in registry.js) fails calling path.join because process.env.windir is undefined. As a workaround, i added the following at the top of my main code:

// hack to allow reg to run in other shells
process.env.windir ||= "C:\\Windows"

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