Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js api is probably broken #388

Open
rifler opened this issue Apr 19, 2021 · 1 comment
Open

js api is probably broken #388

rifler opened this issue Apr 19, 2021 · 1 comment
Labels

Comments

@rifler
Copy link

rifler commented Apr 19, 2021

llnode - 3.2.0
node - 12.19.0
OS - linux

stack trace on require

> require('llnode')
Uncaught Error: Could not locate the bindings file. Tried:
 → /home/rifler/node_modules/llnode/build/addon.node
 → /home/rifler/node_modules/llnode/build/Debug/addon.node
 → /home/rifler/node_modules/llnode/build/Release/addon.node
 → /home/rifler/node_modules/llnode/out/Debug/addon.node
 → /home/rifler/node_modules/llnode/Debug/addon.node
 → /home/rifler/node_modules/llnode/out/Release/addon.node
 → /home/rifler/node_modules/llnode/Release/addon.node
 → /home/rifler/node_modules/llnode/build/default/addon.node
 → /home/rifler/node_modules/llnode/compiled/12.19.0/linux/x64/addon.node
 → /home/rifler/node_modules/llnode/addon-build/release/install-root/addon.node
 → /home/rifler/node_modules/llnode/addon-build/debug/install-root/addon.node
 → /home/rifler/node_modules/llnode/addon-build/default/install-root/addon.node
 → /home/rifler/node_modules/llnode/lib/binding/node-v72-linux-x64/addon.node
    at bindings (/home/rifler/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/home/rifler/node_modules/llnode/index.js:7:24)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18) {
  tries: [
    '/home/rifler/node_modules/llnode/build/addon.node',
    '/home/rifler/node_modules/llnode/build/Debug/addon.node',
    '/home/rifler/node_modules/llnode/build/Release/addon.node',
    '/home/rifler/node_modules/llnode/out/Debug/addon.node',
    '/home/rifler/node_modules/llnode/Debug/addon.node',
    '/home/rifler/node_modules/llnode/out/Release/addon.node',
    '/home/rifler/node_modules/llnode/Release/addon.node',
    '/home/rifler/node_modules/llnode/build/default/addon.node',
    '/home/rifler/node_modules/llnode/compiled/12.19.0/linux/x64/addon.node',
    '/home/rifler/node_modules/llnode/addon-build/release/install-root/addon.node',
    '/home/rifler/node_modules/llnode/addon-build/debug/install-root/addon.node',
    '/home/rifler/node_modules/llnode/addon-build/default/install-root/addon.node',
    '/home/rifler/node_modules/llnode/lib/binding/node-v72-linux-x64/addon.node'
  ]
}
@No9
Copy link
Member

No9 commented Aug 17, 2022

The API requires the additional flag --llnode_build_addon=true to be set for the npm install command.
e.g. npm install llnode --llnode_build_addon=true
We should probably highlight this better in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants