bitpay / bitcore-explorers

Blockchain APIs for bitcore
http://bitcore.io
MIT License
67 stars 95 forks source link

Unable to install alongside recent versions of bitcore-lib #37

Open ghost opened 6 years ago

ghost commented 6 years ago

It appears that bitcore-explorers is using an older version of bitcore-lib and isn't able to function nicely in projects using the most recent version of bitcore-lib. If your project uses the latest version bitcore-lib and bitcore-explorers as a dependency you will get the following error.

Error: More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.

It appears that npm is installing an older version of bitcore-lib under ./node_modules/bitcore-explorers/node_modules based on the dependencies for bitcore-explorers. A temporary solution is to just delete that folder but if you do anything using npm it will reinstall it.

Bensigo commented 6 years ago

getting this same problem

levymoreira commented 6 years ago

One of these integration problems was solved in this PR (just need merge it now ...) I was getting error because the bitcore lib is using a new version of lodash while bitcore-explorers was using a functions that doesn't exist anymore.

https://github.com/bitpay/bitcore-explorers/pull/41

saritvakrat commented 6 years ago

I solved it by uninstalling bitcore-lib since bitcore-explorers already have them as a sub module