Huh yeah, seems to be a old memory leak. Running it on v10.24.0 crashes for me too.
After some quick testing in a couple of versions, it seems like it got fixed in v11 at least (didn't test any minor/patch versions).
By the way, all versions up to NodeJS 12 (LTS) are "end of life", and should probably not be used if you're downloading 3rd party dependencies, as there are bunch of security fixes since then, that are not being backported.
node is v10.24.0. (Default from the Debian 10 repo)