我试图建立一个CLI与gluegun和我遇到了一个错误,而下面的基础教程。以下是我遵循的步骤:
# spin up your new CLI
npx gluegun new movies
# choose TypeScript or Modern JavaScript
# now jump into the source
cd movies
# and link your new executable
yarn link
# and run it!
movies help
运行movies help
后,我得到错误消息zsh: command not found: movies
。
1条答案
按热度按时间2q5ifsrm1#
确保在
~/.zshrc
文件中设置了正确的PATH。添加这一行后:
我觉得一切都很好。
查看文档:https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable