You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using both binding and node-pre-gyp include patterns and both are not working even though the documentation states that they should be supported.
The setup I'm trying to get working is main project "foo" with a dependency on "bar" where the native binaries are in "bar".
What I tried:
Using bindings in "bar" with the file located at lib/binding/node-v72-darwin-x64/bindings.node.
Using bindings in "bar" with the file located at build/Release/bindings.node.
Using node-pre-gyp pattern in "bar" with the file located at lib/binding/node-v72-darwin-x64/bindings.node and calling require(`../../../lib/binding/node-v${process.versions.modules}-${process.platform}-${process.arch}/bindings.node`).
Interestingly, for the last case if I call instead require(`../../../lib/binding/node-v72-${os.platform()}-${os.arch()}/bindings.node`) it works properly. It looks like os is supported for dynamic paths but not process? I wonder if the same issue applies to bindings which would explain why it also doesn't work.
The text was updated successfully, but these errors were encountered:
I tried using both
binding
andnode-pre-gyp
include patterns and both are not working even though the documentation states that they should be supported.The setup I'm trying to get working is main project "foo" with a dependency on "bar" where the native binaries are in "bar".
What I tried:
bindings
in "bar" with the file located atlib/binding/node-v72-darwin-x64/bindings.node
.bindings
in "bar" with the file located atbuild/Release/bindings.node
.node-pre-gyp
pattern in "bar" with the file located atlib/binding/node-v72-darwin-x64/bindings.node
and callingrequire(`../../../lib/binding/node-v${process.versions.modules}-${process.platform}-${process.arch}/bindings.node`)
.Interestingly, for the last case if I call instead
require(`../../../lib/binding/node-v72-${os.platform()}-${os.arch()}/bindings.node`)
it works properly. It looks likeos
is supported for dynamic paths but notprocess
? I wonder if the same issue applies tobindings
which would explain why it also doesn't work.The text was updated successfully, but these errors were encountered: