More than one instance of bitcore-lib found.
Upon npm installing my project which depends on bitcore-mnemonic and bitcore-payment-protocol both also get bitcore-lib installed into both.
This is causing an error `more than on instance of bitcore-lib found check submodules folder for duplicates.
https://gyazo.com/8b26aee53b6b478fa8e770e9d444b04b
Use a more recent version of node and then delete your node modules folder and do npm install again.
It really helps.
I'm running version 6.2.1 and deleted node modules and npm installed.
Same problem as well, using Node 7.10.0 with NPM 4.2.0. The problem is the dependencies using different versions of bitcore-lib. I have tried manually installing the latest version of bitcore-lib in these dependencies, but then the modules within the dependencies that depend on bitcore-lib are then broken due to changes in bitcore-lib (?).
Right now, the install guide for creating a full node is fundamentally broken because bitcoin-wallet-service and bitcoin-wallet-client use bitcore-lib 0.14.0, bitcore-node uses bitcore-lib 0.13.13, and Bitcore uses bitcore-lib 0.13.19.
I made a symbolic link to 0.14.0 for all instances it was used. It works now but it sucks.
Thanks, that worked. Everything is working like normal now. Mah gawd.....
btw, the event that version guard is trying to prevent is no longer a problem in recent versions of node.
If two dependencies require two different versions of bitcore, the requires in each dependency will load the correct version.
I just added a startup script to find bitcore-lib folders and replace "global._bitcore" with __null
Exactly what did you do? I need some hand-holding here - I'm not that familiar with nvm and node.
It looks like they updated the bitpay/bitcore repo to use the latest version of bitcore-lib. Try deleting everything and try again.
Awesome . Yep I tried a fresh copy now and it's working. Thx @kleetus
This issue is happening again...
@xibxor did you try to create a link like i suggested to before?
No, I just installed an older version of bitcore using the @ operator for npm.
how to fix?
This also worked for me
npm uninstall --prefix /path/to/your/bws -S bitcore-lib
@jeshan creds.
@haydencarlson isn't that can break bws functionality?