The command should’ve been valid if you had XCode installed on the Mac. Please make sure that you submitted that command in a Mac Terminal and not a Windows Command Prompt.
Could you please send us a System Report from your Mac? You can find it in About Mac > System Report.
Thank you!