它发生在post_build阶段。
- 尝试先安装,但已安装。
- 尝试将PATH导出为包含/usr/bin(安装curl的位置)
[Container] 2023/11/28 16:44:10.462047 Running command ls -la $(which curl)
-rwxr-xr-x 1 root root 260328 Oct 3 17:15 /usr/bin/curl
[Container] 2023/11/28 16:44:10.517469 Running command echo $PATH
/usr/local/bin/sbt/bin:/root/.goenv/shims:/root/.goenv/bin:/go/bin:/root/.phpenv/shims:/root/.phpenv/bin:/root/.pyenv/shims:/root/.pyenv/bin:/root/.rbenv/shims:/usr/local/rbenv/bin:/usr/local/rbenv/shims:/root/.dotnet/:/root/.dotnet/tools/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/tools:/codebuild/user/bin
Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command:(...) Reason: exit status 127
字符串
1条答案
按热度按时间bttbmeg01#
问题是我执行命令的方式:
字符串
(在shell中工作- bash)
解决办法是:
型