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"