Node.js 安装失败。日志在哪里?

标签 node.js

忙着尝试通过 nodejs 网站上的 windows 下载设置 node.js。它似乎一直运行正常,直到它遇到“创建快捷方式...”时结束,然后开始回滚并出现一个非常无用的一般错误。

没有我可以查看的日志文件吗?

最佳答案

我的首选是使用命令行 msiexec 工具 as indicated on WiX's website : msiexec/i MyApplication.msi/l*v MyLogFile.txt

我从未使用过的另一个选项是编辑注册表 as indicated on Microsoft's website :

To enable Windows Installer logging yourself, open the registry with Regedit.exe and create the following path and keys:
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

Reg_SZ: Logging
Value: voicewarmupx
The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows for MSI version 1.1:
v - Verbose output
o - Out-of-disk-space messages
i - Status messages
c - Initial UI parameters
e - All error messages
w - Non-fatal warnings
a - Start up of actions
r - Action-specific records
m - Out-of-memory or fatal exit information
u - User requests
p - Terminal properties
+ - Append to existing file
! - Flush each line to the log
x - Extra debugging information. The "x" flag is available only on Windows Server 2003 and later operating systems, and on the MSI redistributable version 3.0, and on later versions of the MSI redistributable.

"*" - Wildcard, log all information except for the v and the x option. To include the v and the x option, specify "/l*vx".
Note This should be used only for troubleshooting purposes and should not be left on because it will have adverse effects on system performance and disk space. Each time you use the Add/Remove Programs tool in Control Panel, a new Msi*.log file is created.

关于Node.js 安装失败。日志在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11341245/

相关文章:

javascript - 字符串对象实例在浏览器和 nodejs 中表现出不同的行为

node.js - 队列消费者中的 Nestjs Shell 命令

node.js - Grunt 安装错误 : "should be installed with -g"

node.js - 使用 Express.js 的多个 SSL 证书和 HTTP/2

node.js - Nodejs 将空终止字符串添加到缓冲区

windows - npm package.json bin 在 Windows 上不起作用

jquery - 我想在单击按钮时在 DataTable 中填充数据,默认情况下它应该显示没有可用数据

node.js - 拒绝(TypeError): Cannot read property 'setState' of undefined,未捕获( promise )TypeError:无法读取未定义的属性 'setState'

node.js - 递归使用 socket.pipe 时的 MaxListenersExceededWarning

javascript - 为nodejs中的一系列 promise 添加延迟或 sleep