How to install bitcore-node library without bitcoind?


(Faizan Ul Haq) #1

I am already running bitcoind which i compiled from source , now when i try to install
npm install -g bitcore-node
it also starts downloading bitcoin package 0.12
which results in error

Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/bitcoin-0.12.1-osx64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 370 0 --:–:-- 0:00:01 --:–:-- 370
100 18.8M 100 18.8M 0 0 102k 0 0:03:08 0:03:08 --:–:-- 99k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 604 0 604 0 0 265 0 --:–:-- 0:00:02 --:–:-- 265
100 1154 100 1154 0 0 292 0 0:00:03 0:00:03 --:–:-- 1221
Unpacking bitcoin distribution
x bitcoin-0.12.1/
x bitcoin-0.12.1/bin/
x bitcoin-0.12.1/bin/bitcoin-cli
x bitcoin-0.12.1/bin/bitcoind
x bitcoin-0.12.1/bin/bitcoin-qt
x bitcoin-0.12.1/bin/bitcoin-tx
x bitcoin-0.12.1/bin/test_bitcoin
x bitcoin-0.12.1/bin/wallet-utility
x bitcoin-0.12.1/include/
x bitcoin-0.12.1/include/bitcoinconsensus.h
x bitcoin-0.12.1/lib/
x bitcoin-0.12.1/lib/libbitcoinconsensus.0.dylib
x bitcoin-0.12.1/lib/libbitcoinconsensus.dylib
/usr/local/bin/bitcore-node -> /usr/local/lib/node_modules/bitcore-node/bin/bitcore-node
/usr/local/bin/bitcoind -> /usr/local/lib/node_modules/bitcore-node/bin/bitcoind

bufferutil@1.2.1 install /usr/local/lib/node_modules/bitcore-node/node_modules/bufferutil
node-gyp rebuild

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node

utf-8-validate@1.2.2 install /usr/local/lib/node_modules/bitcore-node/node_modules/utf-8-validate
node-gyp rebuild

CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node

zmq@2.15.3 install /usr/local/lib/node_modules/bitcore-node/node_modules/zmq
node-gyp rebuild

Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing libzmq.pc' to the PKG_CONFIG_PATH environment variable No package 'libzmq' found gyp: Call to 'pkg-config libzmq --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gypfailed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Darwin 18.2.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/bitcore-node/node_modules/zmq gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zmq@2.15.3 install:node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

as a result bitcore-node does not gets installed ,
how can i install only bitcoin-node ? and not with bitcoin package .


(Hans Schoenburg) #2

Bump
Just encountered exactly this error