bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

npm install -g bitcore

Open Lalitpatadiya12 opened this issue 8 years ago • 4 comments
trafficstars

I want to setup bitcore in my system (centos7), here is the my current system details which fulfill the basic requirement of bitcore:

centos7 : 7.3.1611 npm : 2.25.11 nvm : 0.25.0 node : 4.8.4 Ram : 8GB hard-disk space : 500 GB

all basic setup i have done successfully. now i am trying to install bitcore in my system using bellow command

npm install -g bitcore

Unpacking bitcoin distribution bitcoin-0.12.1/ bitcoin-0.12.1/bin/ bitcoin-0.12.1/bin/bitcoin-cli bitcoin-0.12.1/bin/bitcoind bitcoin-0.12.1/bin/bitcoin-qt bitcoin-0.12.1/bin/bitcoin-tx bitcoin-0.12.1/bin/test_bitcoin bitcoin-0.12.1/bin/wallet-utility bitcoin-0.12.1/include/ bitcoin-0.12.1/include/bitcoinconsensus.h bitcoin-0.12.1/lib/ bitcoin-0.12.1/lib/libbitcoinconsensus.so bitcoin-0.12.1/lib/libbitcoinconsensus.so.0 bitcoin-0.12.1/lib/libbitcoinconsensus.so.0.0.0

[email protected] install /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq/.node-gyp" gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: Entering directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq/build' CXX(target) Release/obj.target/zmq/binding.o SOLINK_MODULE(target) Release/obj.target/zmq.node COPY Release/zmq.node make: Leaving directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq/build'

[email protected] install /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil/.node-gyp" gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: Entering directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node COPY Release/bufferutil.node make: Leaving directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil/build'

[email protected] install /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/utf-8-validate node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/utf-8-validate/.node-gyp" gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: Entering directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node COPY Release/validation.node make: Leaving directory /root/.nvm/versions/node/v4.8.4/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/utf-8-validate/build' npm ERR! Linux 3.10.0-514.26.2.el7.x86_64 npm ERR! argv "/root/.nvm/versions/node/v4.8.4/bin/node" "/root/.nvm/versions/node/v4.8.4/bin/npm" "install" "-g" "bitcore" npm ERR! node v4.8.4 npm ERR! npm v2.15.11 npm ERR! file /root/.npm/yallist/2.1.2/package/package.json npm ERR! code EJSONPARSE

npm ERR! Failed to parse json npm ERR! No data, empty input at 1:1 npm ERR! npm ERR! ^ npm ERR! File: /root/.npm/yallist/2.1.2/package/package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log

Lalitpatadiya12 avatar Sep 08 '17 06:09 Lalitpatadiya12

probably need to be on a much more recent version of node.

paOol avatar Sep 13 '17 00:09 paOol

@paOol But in document it self mentioned the require version that's why i have installed. so what should i do if you have idea, please suggest me.

Lalitpatadiya12 avatar Sep 23 '17 05:09 Lalitpatadiya12

Just use the latest version of node. Can't really go wrong with that I am thinking. At time of writing this, latest version is 9.4, there were problems with NPM recently in versions 9.0 to 9.2, but all has been resolved with the latest.

knoxcard avatar Jan 31 '18 11:01 knoxcard