当我在我的Mac PC上安装松露时,我卡住了。我试着用npm install -g truffle安装它,在我创建了一个全局安装的文件夹后,它就能工作了。但是,当我尝试运行Truffle时
truffle init它返回-bash: truffle: command not found,我也重新安装并再次运行它,但没有任何更改。

我该如何处理这个问题?如果你能详细地解释一下,我将不胜感激。
发布于 2018-10-11 02:19:39
我认为在windows上你应该使用truffle.cmd而不是truffle。
所以试一下,
truffle.cmd init请记住,松露init是折旧的,因此您应该尝试使用
truffle.cmd unbox metacoin发布于 2018-11-01 13:29:43
You can reinstall it by this commands
npm uninstall -g truffle 通过以下方式安装
npm install -f truffle 谢谢
https://stackoverflow.com/questions/50273905
复制相似问题