stripe登录zsh:找不到命令:stripe



我正在跟踪stripes文档,当我在步骤2中转到stripe login时,我得到以下错误:

zsh:未找到命令:条纹

我已经执行了步骤1,安装条带CLI,为什么会出现此错误

更新,更新2:我执行了建议的操作,但条带登录仍然不起作用

我意识到,我得到了以下步骤1的错误:(检查更新2(

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

然后将解压缩的文件移动到/usr/local/bin文件夹,您可以再次使用stripe命令

我通过运行重新安装了自制程序

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

然后我再次运行brew install stripe/stripe-cli/stripe,这一次它运行起来没有任何问题。

最新更新