我正在跟进条纹文档 https://stripe.com/docs/stripe-cli#install当我去stripe login
在步骤 2 中,我收到以下错误:
zsh:找不到命令:条带
我已经执行了步骤 1,安装 stripe CLI,为什么我会收到此错误?
更新,更新2:我执行了建议的操作,但条带登录仍然不起作用。
我意识到,我在步骤 1 中收到以下错误:(检查 update2)
nmaer@nmaer-MBP SignUpFlowFanclub % brew install stripe/stripe-cli/stripe
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
==> Installing stripe from stripe/stripe-cli
==> Downloading https://github.com/stripe/stripe-cli/releases/download/v1.5.9/stripe_1.5.9_mac-os_x86_64.tar.gz
Already downloaded: /Users/nmaer/Library/Caches/Homebrew/downloads/afda22020bd67ba6a51e1c4420ec72f009db3462b48c7675b83b1fa0b77928af--stripe_1.5.9_mac-os_x86_64.tar.gz
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
Error: Your Command Line Tools (CLT) does not support macOS 11.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
Error: An exception occurred within a child process:
SystemExit: exit
也许答案对你来说有点晚了,但我也花了一些时间并分享我的问题解决方案。
您还可以在没有包管理器的情况下安装 Stripe。在带有 M1 芯片的新 Mac 上,路径存在问题。
下载最新版本https://github.com/stripe/stripe-cli/releases/tag/v1.7.13 https://github.com/stripe/stripe-cli/releases/tag/v1.7.13
然后将解压后的文件移动到/usr/local/bin
文件夹,您可以再次使用 stripe 命令
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)