我很难做松露和发泡剂。
我所采取的步骤是:
truffle init初始化testrpc启动测试尝试truffle migrate或truffle test然后给我“
Error: authentication needed: password or unlock
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/errors.js:35:16)
at /usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/requestmanager.js:86:36
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:118:13)
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._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:509:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:469:24)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)据我所读,这似乎是一个帐户被锁定的错误,但testrpc的文档表明,默认情况下,它将创建10个未锁定的帐户--除非您指定--secure?
发布于 2017-04-06 10:16:29
我有另一个运行geth的实例,松露试图用它来代替testrpc,但我还没有部署。
truffle deploy或truffle test之前先调用truffle migrate发布于 2017-04-06 10:27:54
您已经使用testrpc提供了prob,在使用松露进行部署之后,只需尝试重新启动它。你可以看这个图图:truffle+MetaMask+testrpc
https://ethereum.stackexchange.com/questions/13976
复制相似问题