This code throws an error:
const registry = require('windows-registry');
const windef = registry.windef;
const key = new registry.Key(windef.HKEY.HKEY_LOCAL_MACHINE, 'SOFTWARE\\SomeVendor\\SomeApp\\Settings');
Failed to open key error: undefined
This happens even when running in an Administrator command prompt. What could the issue be?