当我将松露安装到我的Mac PC时,我被卡住了。
我尝试用npm install -g truffle
安装它,并且在我为全局安装创建了一个文件夹之后它工作了。
但是,当我尝试运行松露
truffle init
它返回-bash: truffle: command not found
我也重新安装它并再次运行但没有任何改变。
我该如何处理这个问题? 如果您详细解释,我们将非常感激。
答案 0 :(得分:1)
我认为在Windows上您应该使用truffle.cmd而不是truffle。
所以尝试,
truffle.cmd init
请记住,松露init已贬值,因此您应该尝试使用
truffle.cmd unbox metacoin
答案 1 :(得分:1)
You can reinstall it by this commands
npm uninstall -g truffle
通过
安装 npm install -f truffle
谢谢