Use tree-sitter-javascript parser

Hi, I’m trying to use the tree-sitter-javascript parser to get a syntax tree of a javascript file. But everytime I tried to use “const Parser = require(‘tree-sitter-javascript’)”, atom would give me this error:

A dynamic link library (DLL) initialization routine failed.

javascript\build\Release\tree_sitter_javascript_binding.node in 

I then used electron-rebuild, but it would then change the error to something about different node module versions 57 or something.