AdChain / AdChainRegistry

adChain registry smart contracts
Apache License 2.0
30 stars 10 forks source link

build error #37

Closed gltwy closed 6 years ago

gltwy commented 6 years ago

events.js:137 throw er; // Unhandled 'error' event ^

Error: Invalid JSON RPC response: "" at Object.InvalidResponse (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/web3/lib/web3/errors.js:35:16) at XMLHttpRequest.request.onreadystatechange (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/web3/lib/web3/httpprovider.js:115:32) at XMLHttpRequestEventTarget.dispatchEvent (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/xhr2/lib/xhr2.js:64:18) at XMLHttpRequest._setReadyState (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/xhr2/lib/xhr2.js:353:12) at XMLHttpRequest._onHttpRequestError (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/xhr2/lib/xhr2.js:542:12) at ClientRequest. (/Users/yinghai/.Trash/AdChainRegistry-master 17.08.27/node_modules/xhr2/lib/xhr2.js:413:24) at ClientRequest.emit (events.js:160:13) at TLSSocket.socketErrorListener (_http_client.js:389:9) at TLSSocket.emit (events.js:160:13) at emitErrorNT (internal/streams/destroy.js:64:8) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! AdChainRegistry@0.0.1 compile: truffle compile npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the AdChainRegistry@0.0.1 compile script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

eccheung4 commented 6 years ago

Hi gitwy, Thank you for reporting the error. Off the top of my head, it could be the truffle version as this was developed very early on with an older truffle version.

However, please test using this repo instead. The adChain Registry is using the forked version found here: https://github.com/skmgoldin/tcr Sorry we will update README to point to that location.

gltwy commented 6 years ago

@eccheung4 I followed the steps you gave me, but I made the same mistake as above.Why?

eccheung4 commented 6 years ago

@gitwy you're having the same problem using tcr repo? What truffle version are you using? Have testrpc running? Thanks

gltwy commented 6 years ago

@eccheung4 truffle --version Truffle v4.0.6 - a development framework for Ethereum npm --version 5.6.0

eccheung4 commented 6 years ago

@gitwy you're using this repo?: https://github.com/skmgoldin/tcr what node version are you using? node --version

gltwy commented 6 years ago

@eccheung4 I used the repo, node --version v9.5.0

eccheung4 commented 6 years ago

@gitwy thanks for your patience! I've matched your versions and seems ok for me. Try npm rebuild are you having problems when running npm run compile?

gltwy commented 6 years ago

@eccheung4 Thanks! The problem has been solved

eccheung4 commented 6 years ago

great @gitwy! Thanks for testing it out.