Fab*_*sta 7 out-of-memory eslint visual-studio-code
在具有 16GB 内存的 macOs 13.2.1 上运行 eslint 似乎在第一次解析时挂起并在 Vs Code 上崩溃。
命令
DEBUG=eslint:*,eslintrc:* npx eslint --fix apps/**/*.ts
Run Code Online (Sandbox Code Playgroud)
挂起输出,例如
eslint:linter Verify +1ms
eslint:linter With ConfigArray: someFile.app.ts +0ms
eslint:linter Parsing: someFile.app.ts +1ms
Run Code Online (Sandbox Code Playgroud)
该文件非常简单,有 9 个位置
eslint 的 VS 代码输出显示内存不足错误
<--- Last few GCs --->
[14915:0x130008000] 253332 ms: Scavenge 16144.8 (16413.5) -> 16141.4 (16430.8) MB, 22.5 / 0.0 ms (average mu = 0.603, current mu = 0.886) allocation failure
[14915:0x130008000] 268734 ms: Mark-sweep 16154.7 (16430.8) -> 16145.6 (16437.8) MB, 15312.6 / 0.0 ms (average mu = 0.477, current mu = 0.025) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Run Code Online (Sandbox Code Playgroud)
它似乎不会发生在管道上,但它在终端或本地 VS Code 上无法使用。
eslint:^8.40.0 节点 v16.20.0 到 nvm 0.39.3
| 归档时间: |
|
| 查看次数: |
1281 次 |
| 最近记录: |