【truffle】Error: `truffle init` no longer accepts a project template name as an argument.

时间:2023-03-09 05:04:28
【truffle】Error: `truffle init` no longer accepts a project template name as an argument.

下载范例工程时候。使用命令报错

truffle init webpack 

错误如下:

Error: `truffle init` no longer accepts a project template name as an argument.

 - For an empty project, use `truffle init` with no arguments
- Or, browse the Truffle Boxes at <http://truffleframework.com/boxes>!

原因:

命令已经更新了,通过如下方式 即可

truffle unbox webpack