gpt4 book ai didi

node.js - node.exe 退出,代码为 134 Visual Studio

转载 作者:行者123 更新时间:2023-12-04 15:22:27 31 4
gpt4 key购买 nike

我正在尝试使用 Visual Studio 2019 构建/运行我的 .NET 解决方案,但出现此错误:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe" exited with code 134.WebTranslations  C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.8\build\Microsoft.TypeScript.targets 551
我认为这与内存有关,因为如果我重新启动我的电脑,我可以构建几次,但是我开始遇到同样的错误
我尝试使用 node_options max-old-space-size 但没有运气

最佳答案

来自 https://developercommunity.visualstudio.com/t/node-options-env-var-causes-vs-2017-to-crash/241366#T-N368702-N368874-N368902

Zoey Riordan [MSFT]:

Unfortunately this is caused by the fact that the nodejs process we run is 32-bit. In 32-bit node you cannot set max_old_space_size above 4095 since 32-bit process are not able to allocate a full 4GB of heap space. In order to make this work you can choose a smaller heap size or only set the flag on applications which need that amount of heap.


我尝试了以下不同的值 4096max_old_space_size并找到消除此构建错误的值:

max-old-space-size成功?
错误信息


4096
node.exe exited with code 134
4080
node.exe exited with code 134
4076
node.exe exited with code 134
4075
node.exe exited with code 134
4074
node.exe exited with code -1073741819
4073
node.exe exited with code -1073741819
4072
node.exe exited with code -1073741819
4071
是的

4070
是的

4068
是的

4064
是的

4000
是的



(我不确定这是否取决于正在编译的项目。)

关于node.js - node.exe 退出,代码为 134 Visual Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63012947/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com