openpeeps / denim

Node 💖 Nim = Denim! Build powerful NodeJS / BunJS addons with Nim language via Node API (NAPI)
https://openpeeps.github.io/denim/
MIT License
40 stars 1 forks source link

node-gyp put node_api.h in an unexpected place #2

Closed jfilby closed 1 year ago

jfilby commented 1 year ago

I'm logging this issue in case anyone has a similar problem.

This caused nimble install denim to fail because it couldn't find node_api.h.

I found the file here: $HOME/.cache/node-gyp/18.16.0/include/node/node_api.h

So to fix the error, I copied the node directory with: cp -r /home/jasonfi/.cache/node-gyp/18.16.0/include/* /usr/include

After that denim installed fine via nimble.