Solved, please use Bazelisk to install Bazel. See the updates in the question to get the command lines.