解决truffle “could not find suitable configuration file“问题

    在使用truffle命令的过程中,有时会报"could not find suitable configuration file",出现这种现象的原因是,当前目录下缺少truffle.js 或者truffle-config.js文件。
    解决方法:使用truffle init命令,生成一个truffle.js或者truffle-config.js文件即可。
    或者,切换到含有truffle.js 或者truffle-config.js文件的目录,再使用truffle命令即可。

//1) 生成truffle配置文件
truffle init
truffle compile --list

//2)进入还有truffle配置文件的目录
cd oneDApp
truffle compile --list

Guess you like

Origin blog.csdn.net/sanqima/article/details/120478646