bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
3.01k stars 811 forks source link

Error when installing as dependency #1111

Closed Sebastp closed 1 year ago

Sebastp commented 1 year ago

When I run yarn add git+https://github.com/bcoin-org/bcoin.git#semver:~2.0.0 I get an err related to node-gyp. Tried everything. It seems like the issue is with "bcrypto" lib image the err is really long.

see this node.bcrypt.js/issues/432 consider switching to "bcrypt-nodejs" like they say, maybe?

pinheadmz commented 1 year ago

Can you post the rest of the error? I don't actually see the error message in this screenshot. We will not switch crypto dependencies. I will try to reproduce locally with darwin x64

pinheadmz commented 1 year ago

Could not reproduce:

--> yarn add git+https://github.com/bcoin-org/bcoin.git#semver:~2.0.0
yarn add v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
warning Pattern ["bcrypto@git+https://github.com/bcoin-org/bcrypto.git#semver:~5.0.3"] is trying to unpack in the same destination "/Users/matthewzipkin/Library/Caches/Yarn/v6/npm-bcrypto-5.0.4-0a01f693443d8b19f6db1154e0133c7bf703b205/node_modules/bcrypto" as pattern ["bcrypto@git+https://github.com/bcoin-org/bcrypto.git#semver:~5.0.4"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["nan@git+https://github.com/braydonf/nan.git#semver:~2.14.0"] is trying to unpack in the same destination "/Users/matthewzipkin/Library/Caches/Yarn/v6/npm-nan-2.14.0-1dcc61bd06d84e389bfd5311b2b1492a14c74201/node_modules/nan" as pattern ["nan@git+https://github.com/braydonf/nan.git#semver:=2.14.0"]. This could result in non-deterministic behavior, skipping.
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 25 new dependencies.
info Direct dependencies
└─ bcoin@2.0.0
info All dependencies
├─ bcfg@0.1.7
├─ bcoin@2.0.0
├─ bcrypto@5.0.4
├─ bcurl@0.1.10
├─ bdb@1.2.2
├─ bdns@0.1.5
├─ bevent@0.1.5
├─ bfile@0.2.2
├─ bfilter@2.0.0
├─ bheep@0.1.5
├─ binet@0.3.7
├─ blgr@0.1.9
├─ blru@0.1.6
├─ blst@0.1.5
├─ bmutex@0.1.6
├─ brq@0.1.8
├─ bs32@0.1.6
├─ bsock@0.1.9
├─ btcp@0.1.5
├─ buffer-map@0.0.7
├─ bupnp@0.2.6
├─ bval@0.1.6
├─ bweb@0.1.9
├─ n64@0.2.10
└─ nan@2.14.0
✨  Done in 32.86s.
theanmolsharma commented 1 year ago

Marking as closed due to inactivity from the original author. If you have any further questions or need assistance with this matter, please don't hesitate to reopen the issue.