ddopson / node-segfault-handler

Tool for debugging native Node.js modules and getting stack traces when things go wrong.
BSD 3-Clause "New" or "Revised" License
319 stars 74 forks source link

Error: Could not locate the bindings file (node_modules/bindings/bindings.js:135). Tried: #87

Open hoffmanic opened 1 year ago

hoffmanic commented 1 year ago

Hi there, we are running an old version of node and attempting to run on WSL2.

I am new to WSL2 and wondering if there is support for this v-environment?

Package: segfault-handler@1.3.0 WLS2: Ubuntu-22.04 We are using node: v14.15.1 and attempted: v20.5.0 npm: 0.39.4

and the basic get started code.

Note: node v20.5.0 does work.. you need to npm rebuild on wsl2.

hoffmanic commented 1 year ago

I ended up getting this working:

I needed to use node: v14.21.3 the lts/fermium build.

I also believe you need to do a npm rebuild for WSL2 you'll need to install:

Further in our real project we use pnpm and the above works too. just do a npm rebuild too!