Node.js:系统找不到指定的注册表项或值

Node.js:系统找不到指定的注册表项或值,node.js,nvm,Node.js,Nvm,我试图在另一个系统上执行Node.js中的一些现有代码,但我遇到了一个错误,对此我一无所知 The system was unable to find the specified registry key or value 当我试图查看完整的堆栈跟踪时,它是: ERROR: The system was unable to find the specified registry key or value.] name: [Getter], message: [Getter], code: [

我试图在另一个系统上执行Node.js中的一些现有代码,但我遇到了一个错误,对此我一无所知

The system was unable to find the specified registry key or value
当我试图查看完整的堆栈跟踪时,它是:

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)
错误:系统找不到指定的注册表项或值。]
名称:[Getter],消息:[Getter],代码:[Getter]}
ProcessUncleanExitError:查询命令已退出,代码为1:
错误:系统找不到指定的注册表项或值。
在mkErrorMsg
(C:\Bhuwan\UFD2\u 0\API\node\u modules\winreg\lib\registry.js:111:12)
在这个过程中。(C:\Bhuwan\UFD2\u 0\API\node\u modules\winreg\lib\registry.js:459:10)
两点钟(events.js:87:13)
在ChildProcess.emit(events.js:172:7)
在maybeClose(内部/子进程js:821:16)
在插座上。(内部/child_process.js:319:11)
在emitOne(events.js:77:13)
位于Socket.emit(events.js:169:7)
在管道上关闭(net.js:469:12)
请注意,代码在我的其他系统上运行良好。这是现行制度的一些问题。有人能帮我吗

另外,我正在使用来自NVM节点v4.3.2


提前谢谢

代码正在尝试查找一个注册表项,告诉
Winreg
包查找注册表项,但是找不到,因为它不在那里。但它确实存在于成功运行代码的机器上。您必须将密钥从可以运行代码的计算机复制到无法运行代码的另一台计算机。为了让我们给出答案,您需要向我们展示发生错误的代码片段。查找告诉
Winreg
包查找特定密钥的行。然后你的问题就可以解决了。

你能提供更多信息吗:你的应用程序正在寻找什么注册表项?在您当前的系统上,该键的值是多少?更重要的是,您的应用程序何时以及为什么在那里存储数据?我们可以得到您的部分代码吗?至少抛出错误的部分?从错误消息判断,问题似乎是某个注册表项不存在。查找丢失的密钥并在新系统上创建它。也请遵循您在其他评论中得到的好建议。我认为错误在于,在位于“C:\Bhuwan\UFD2\u 0\API\node\u modules\winreg\lib\”的
registry.js
中,系统无法找到指定的注册表项或值。没有源代码,没什么好说的。只是为了确保:您没有从工作系统复制项目文件夹,而是复制了源代码并运行了npm安装?否则可能会丢失一些东西。