bitcore-lib new version error
bitcore-4.1.0 is find to run, but bitcore-4.1.1 show errors.
/usr/local/src/bitcore-4.1.1/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 (/usr/local/src/bitcore-4.1.1/node_modules/insight-api/node_modules/bitcore-lib/index.js:12:11)
at Object.
from /usr/local/src/bitcore-4.1.1 run the following command
find ./node_modules -type f -print0 | xargs -0 sed -i 's/global\._bitcore/__NULLVARsdfs6d/g'
It will disable the version guard.
Hello,
I have the same exact issue. I've installed it with npm install -g bitcore. I'd could not run the command above, does it works for Mac too or what should I do to disable the version guard?
@cbedoya
have a try
find /usr/lib/node_modules -type f -print0 | xargs -0 sed -i 's/global\._bitcore/__NULLVARsdfs6d/g'
run
find ./node_modules -type f -print0 | xargs -0 sed -i 's/global._bitcore/__NULLVARsdfs6d/g'
then run "bitcored" i got "__NULLVARsdfs6d is not defined"