gpt4 book ai didi

windows - 如何在 Windows 上通过 bash 访问 AWS SAM-CLI?

转载 作者:行者123 更新时间:2023-12-01 21:34:47 31 4
gpt4 key购买 nike

我运行的是 Windows 10,只能通过命令提示符而非 bash 访问 AWS SAM。当我尝试使用 bash 时,出现 bash: sam: command not found 错误。

如果有帮助,我目前已经安装了 AWS CLI v2 并通过 MSI 文件安装了它。

为什么我不能通过 bash 使用 SAM?

编辑:是的,我知道它没有明确说明您可以在 AWS 设置指南中使用 bash

Verify the installation.After completing the installation, verify it by opening a new command prompt or PowerShell prompt. You should be able to invoke sam from the command line.

但是,我还是希望能够通过bash来使用它。有解决方法吗?

最佳答案

你试过sam.cmd了吗?

有时 bash 不知道如何执行 .cmd 文件。这是一个thread有这个问题。

你可以试试this solution也是:

alias sam='sam.cmd'

关于windows - 如何在 Windows 上通过 bash 访问 AWS SAM-CLI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62099966/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com