truffle init
Error: Example 'default' doesn't exist. If you believe this is an error, please contact Truffle support.
at ClientRequest.<anonymous> (/usr/lib/node_modules/truffle/build/cli.bundled.js:214190:27)
1.如果电脑需要走代理,那么truffle init出现如下错误:
D:\gopath\simple-storage>truffle initDownloading…Error: Truffle Box
at URL https://github.com/truffle-box/bare-box.git doesn’t exist. If
you believe this is an error, please contact Truffle support.
解决方法可以是直接git代码取代truffle init命令
git clone https://github.com/truffle-box/bare-box
后续的命令需要先执行:cd bare-box
以上两条命令的功能就相当于truffle init,自动生成好了框架。
在使用truffle migrate进行智能合约test环境发布时如果未配置正确会出现以下异常:
Error: No network specified. Cannot determine current network.
at Object.detect (/usr/lib/node_modules/truffle/build/cli.bundled.js:586