智能合约部署truffle migrate时出现错误

控制台输入truffle migrate提示:
There was a timeout while attempting to connect to the network.check to see that your provider is valid.If you have a slow internet connection,try configuring a longer timeout in your truffle config.
意思是连接超时,检查你的设置。如果你的网速有点慢,把“timeout”调长一点。

在项目的truffle-config.js调truffle的设置:

mocha:{
	//timeout:200000  //我把原来的100000调成了200000,就OK了
}

再部署就成功了

你可能感兴趣的:(下载安装)