This will work because commands in Windows builds are run with Git Bash.
AFAICS, those commands do work for you and the build fails later, at compilation stage.
Due to Stderr output is shown after the build log rather than inline, errors in a Windows build log are displayed at the end rather than where they belong.
It looks like the builder is getting 404s when trying to download some dependencies.