I am trying to execute some existing code in Node.js on a different system but I am getting an error which I have no clue about.
The system was unable to find the specified registry key or value
When I tried to see the full stack trace, it was:
ERROR: The system was unable to find the specified registry key or value.]
name: [Getter], message: [Getter], code: [Getter] }
ProcessUncleanExitError: QUERY command exited with code 1:
ERROR: The system was unable to find the specified registry key or value.
at mkErrorMsg
(C:\Bhuwan\UFD2_0\API\node_modules\winreg\lib\registry.js:111:12)
at ChildProcess.<anonymous> (C:\Bhuwan\UFD2_0\API\node_modules\winreg\lib\registry.js:459:10)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Please note that the code is working just fine on my other system. It is some problem with the current system. Can anyone help me regarding this?
Also, I am using Node v4.3.2 from NVM.
Thanks in advance!