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

Error: Could not locate the bindings file. #29

Open
danielgamboar opened this issue Aug 14, 2019 · 3 comments
Open

Error: Could not locate the bindings file. #29

danielgamboar opened this issue Aug 14, 2019 · 3 comments

Comments

@danielgamboar
Copy link

danielgamboar commented Aug 14, 2019

I have been trying to install and use orbit-db-cli. After installing it via npm and git clone.

Via npm, it gets installed with no issue, when typing orbitdb in the command line, it shows the following:

danieldev@danieldev:~$ orbitdb
/home/danieldev/orbit-db-cli/node_modules/leveldown/node_modules/bindings/bindings.js:99
  throw err
  ^

Error: Could not locate the bindings file. Tried:
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/build/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/build/Debug/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/build/Release/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/out/Debug/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/Debug/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/out/Release/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/Release/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/build/default/leveldown.node
 → /home/danieldev/orbit-db-cli/node_modules/leveldown/compiled/12.8.0/linux/x64/leveldown.node
    at bindings (/home/danieldev/orbit-db-cli/node_modules/leveldown/node_modules/bindings/bindings.js:96:9)
    at Object.<anonymous> (/home/danieldev/orbit-db-cli/node_modules/leveldown/leveldown.js:4:46)
    at Module._compile (internal/modules/cjs/loader.js:868:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
    at Module.load (internal/modules/cjs/loader.js:731:32)
    at Function.Module._load (internal/modules/cjs/loader.js:644:12)
    at Module.require (internal/modules/cjs/loader.js:771:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (/home/danieldev/orbit-db-cli/node_modules/orbit-db-keystore/index-nodejs.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:868:30) {
  tries: [
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/build/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/build/Debug/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/build/Release/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/out/Debug/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/Debug/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/out/Release/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/Release/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/build/default/leveldown.node',
    '/home/danieldev/orbit-db-cli/node_modules/leveldown/compiled/12.8.0/linux/x64/leveldown.node'
  ]
}

I've tried using the following node versions:


danieldev@danieldev:~$ nvm ls
        v8.10.0
        v8.12.0
       v10.16.2
->      v12.8.0
default -> node (-> v12.8.0)
node -> stable (-> v12.8.0) (default)
stable -> 12.8 (-> v12.8.0) (default)
iojs -> N/A (default)
lts/* -> lts/dubnium (-> v10.16.2)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.16.0 (-> N/A)
lts/dubnium -> v10.16.2

Any idea how to solve this situation?

@danielgamboar
Copy link
Author

I have resolved this situation. As I'm using a Virtual Machine I decide to create a new VM to have a virgin installation of Ubuntu 18.04. I installed via nvm node v10.16.3, installed via npm git and python 2.7, then installed via npm orbit-db-cli and now I can access to orbitdb command.

@RichardLitt
Copy link
Member

@danielgamboar Thanks for logging this. Sounds like this can be closed?

@tymmesyde
Copy link

tymmesyde commented Jun 12, 2020

Same issue with node v12.17.0 via npm

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

No branches or pull requests

3 participants