Orbit-db: Install fails while adding leveldown dependency

Created on 29 Jun 2018  路  6Comments  路  Source: orbitdb/orbit-db

Having some trouble installing orbit-db to my working directory. npm i orbit-db fails while trying to add leveldown as a dependency. yarn add orbit-db fails in a similar fashion. Gist of verbose log

https://gist.github.com/Annorstades/9663c945ae48c9fc012a61cc253a4d58

Things apparently start to go south once prebuild-install || node-gyp rebuild is invoked.

bug

Most helpful comment

Note! We don't officially support Node.js v10 yet as it's not yet LTS. Once it is, we'll officially support it. That said, I think this is really important to fix and get working and we might as well do it before v10 LTS.

We've now updated the LevelDB related modules to v3.x and the updated dependencies are merged to master. The tests are passing locally with v10 and on CI with v8, so I'm assuming this is fixed. Note that this fix hasn't been published to npm yet, but we're expecting to make and publish a new release soon.

I'll leave the issue open until we have a new version of orbitdb in npm. Meanwhile, would highly appreciate if you'd test this and let us know if you're still experiencing problems! 馃檹

All 6 comments

Which version of Node are you using. This happens to me too, but 8 works.

I can also confirm that the package installation does not work at node v10 and I have to fall back to node v8.

you could override the leveldown dependency of orbit-db-cache using selective dependency resolution in yarn for now (or setting the leveldown version in the package-lock.json file and installing via npm ci).

Hopefully orbitdb/orbit-db-cache#7 will be merged soon

Can confirm this is a problem @haadcode

Note! We don't officially support Node.js v10 yet as it's not yet LTS. Once it is, we'll officially support it. That said, I think this is really important to fix and get working and we might as well do it before v10 LTS.

We've now updated the LevelDB related modules to v3.x and the updated dependencies are merged to master. The tests are passing locally with v10 and on CI with v8, so I'm assuming this is fixed. Note that this fix hasn't been published to npm yet, but we're expecting to make and publish a new release soon.

I'll leave the issue open until we have a new version of orbitdb in npm. Meanwhile, would highly appreciate if you'd test this and let us know if you're still experiencing problems! 馃檹

Node 10 is stable now - this should be working for folks. Feel free to re-open or create a new issue if it's not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BartKnucle picture BartKnucle  路  4Comments

cristiano-belloni picture cristiano-belloni  路  5Comments

eusthace picture eusthace  路  6Comments

maroodb picture maroodb  路  3Comments

oed picture oed  路  5Comments