如何安装松露

时间:2018-05-10 13:20:08

标签: macos truffle cryptocurrency

当我将松露安装到我的Mac PC时,我被卡住了。 我尝试用npm install -g truffle安装它,并且在我为全局安装创建了一个文件夹之后它工作了。 但是,当我尝试运行松露

truffle init

它返回-bash: truffle: command not found 我也重新安装它并再次运行但没有任何改变。 enter image description here

我该如何处理这个问题? 如果您详细解释,我们将非常感激。

2 个答案:

答案 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 

谢谢