Description
Followed the steps https://docs.gptscript.ai/examples/cli
- Add the new file:
vi cli-demo.gpt
Then, input the contents listed in the doc.
- Then run:
gptscript cli-demo.gpt
It shows error in the output:
run encountered an error: ERROR: The following is the help text for the gh cli and some of its sub-commands. Use these when figuring out how to construct new commands. Note that the --search flag is used for filtering and sorting as well; there is no dedicated --sort flag.
: exit status 127 with error output: failed to run: ERROR: The following is the help text for the gh cli and some of its sub-commands. Use these when figuring out how to construct new commands. Note that the --search flag is used for filtering and sorting as well; there is no dedicated --sort flag.
: exit status 127
From the output, I can see the echo part already works, but I don't know what is the exit 127 means?
How can I fix this issue and run the "Chat with a Local CLI" example?
Thanks