I've no idea about the problem. The commands are running well on my computer.
I have a question about the log:
PATH mean in your environment? It looks like a environment variable.
I think the output in log should be absolute path, but it's not in your log.
And there is a suggestion : Please keep the path used in cocos away from spaces. Such as project path, SDK path, NDK path and so on.
Anyway, please tell us if you solved it and how to solve it. Or if you can give me more details about your environment, I can take a try to solve it.
Thanks for your feedback! And sorry for the problem!