简体   繁体   English

在我的 Mac 上安装 truffle 后,我无法在我的终端中运行 truffle 命令,结果总是 zsh: command not found: truffle

[英]I am unable to run truffle commands in my terminal after installing truffle on my Mac, the result is always zsh: command not found: truffle

I have node v14.17.0 and npm v6.14.13 installed.我安装了节点 v14.17.0 和 npm v6.14.13。 Their commands seem to be working fine.他们的命令似乎工作正常。 I've seen other people with this problem but no clear answer on what should be done within the terminal to recognize the truffle commands.我见过其他人遇到过这个问题,但对于在终端内应该做什么来识别松露命令没有明确的答案。

Try this command:试试这个命令:

npx truffle init

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM