新安装的Hbuilderx可能经常报这个错,FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

据网友所言:这是因为Hbuilder自带的nodejs版本低,所以内存溢出
如果电脑上有node的话就把如下文件直接粘贴过来,把hbx的node文件替换掉
两个npm,两个npx名字的文件,和node.exe

以新版node的同名文件覆盖

接下来可能遇到这个问题:

[编译scss/sass] 15:48:25.231 Error: \\?\G:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-64\binding.node is not a valid Win32 application.
[编译scss/sass] 15:48:25.231 \\?\G:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-64\binding.node

hbx会给出三条 cmd 命令,执行后可能能够解决问题,
如果没有,就需要自己到 github 找到对应的 binding.node版本(此处版本就是 win32-x64-64),手动下载,并覆盖目录 G:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-64 下的 binding.node 文件

posted on 2022-09-05 23:56  In-6026  阅读(818)  评论(0编辑  收藏  举报

导航