-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: 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. #1454
Comments
Well, this is far from a proper way to solve this issue, but you can get rid of this error by editing file
line 7: I did this and so far no problems. |
I just went to index.js and I changed the line throw new Error(message) to throw new Error(version) in the file index.js. That gave me the current version of the bitcoin-lib. In my case, it was v0.13.19. Now revert the changes and updated the version to this one which you have got. |
this problem with npm version
|
It works, thanks @Boyarov ! |
This is the result of
It looks like Update: looks like it was broken here: ad4e25e, so the fix is to install the version before that, as @xibxor pointed out:
|
@adamu |
Would like to note that this issue is still present when installing |
npm -g install [email protected] fixed the issue for me. |
How to achieve assymetric encrypt and decrypt technique in ethereum by picking the keys from testrpc . In Testrpc iam getting account address and private key where the public key resides and how we need to pick it up.
|
this error still occurs |
can confirm, just got this error |
Solution finally !! |
var bitcore = require('bitcore-explorers/node_modules/bitcore-lib'); You can use this to resolve this error. |
the above solution is difficult using webpack and babel. is there a package that combines packages for simplicity? |
Adding this to my "resolutions": {
"bitcore-lib": "0.16.0"
} |
this issue is still persist. Say some package, for exampe Ethereum-Bip44, that has a dependency of bitcore 0.13.13. so the entire code should use 0.13.13 which is very old! |
my solution enter in node_modules\bitcore-insight\node_modules and delete bitcore-lib later npm install bitcore-lib and use it const bitcore = require('bitcore-lib'); |
@trinisofttechnologies really worked for me too ... nice job, let keep building |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Hope it helps.
|
Solved by creating a file
And edited the file
Basically replaces the function that was giving the |
Hi everybody
When I run the command bitcored, it gives me the following error
/home/ruby/.nvm/versions/node/v4.8.3/lib/node_modules/bitcore/node_modules/insight-api/node_modules/bitcore-lib/index.js:12
throw new Error(message);
^
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.
at Object.bitcore.versionGuard (/home/ruby/.nvm/versions/node/v4.8.3/lib/node_modules/bitcore/node_modules/insight-api/node_modules/bitcore-lib/index.js:12:11)
at Object. (/home/ruby/.nvm/versions/node/v4.8.3/lib/node_modules/bitcore/node_modules/insight-api/node_modules/bitcore-lib/index.js:15:9)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/ruby/.nvm/versions/node/v4.8.3/lib/node_modules/bitcore/node_modules/insight-api/lib/blocks.js:4:15)
at Module._compile (module.js:409:26)
The text was updated successfully, but these errors were encountered: