2017-05-22 6 views
0

トリュフルのinitに付属しているスタンダードコントラクトを移行することはできません。私は何をすべきかHere's:トリュフルマイグレーションエラー

truffle init 
truffle compile 
truffle migrate 

とこれは私がinitをした場合に発生するものです:

enter image description here

しかし、私は移行する場合、エラーの次のリストが現れます:

Error: Invalid JSON RPC response: "" 
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/errors.js:35:16) 
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:115:32) 
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:64:18) 
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:354:12) 
at XMLHttpRequest._onHttpRequestError (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:544:12) 
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:414:24) 
at emitOne (events.js:96:13) 
at ClientRequest.emit (events.js:188:7) 
at Socket.socketErrorListener (_http_client.js:309:9) 
at emitOne (events.js:96:13) 
+0

あなたtestrpcのサーバが動作していることを確認し、あなたのtruffle.jsの設定をチェックし右のポートを持っているがIPアドレス。 – webjunkie

+0

ありがとう、ポートとアドレスは正しい私はすべての前にtestrpcを忘れていた – killezio

答えて

2

webjunkieとしてコメント:

    あなたのtruffle.js設定ポートとIPをチェック
  1. testrpc
  2. がデフォルトに設定されている「ローカルホスト:8545」
  3. truffle migrate
+0

私はtestrpcを忘れて感謝 – killezio