I am using Win10 latest. After installing AWS-SAM-CLI and testing the installation with:
sam --version
I get the message
bash: sam: command not found
however, when I use Powershell, cmd or ConEmu they can all resolve "sam".
the path is "e/Program Files/Amazon/AWSSAMCLI/bin" but other commands like "yarn" work fine which is also installed at "e/Program Files/..."
Any ideas? Thanks
alias sam="sam.cmd"
if it works in normal cmd. Nowsam --version
should work. – Defunctecho 'alias sam="sam.cmd"' >> ~/.bashrc
for e.g. ; some more thoughts on that here – Tempura