0

I use Windows 10.

Internet writes that it has build-in curl.

But when I run in PowerShell curl -s https://laravel.build/example-app | bash PS acts like I have written something with Invoke-WebRequest. It breaks script:

enter image description here

It happens because PS redirects raw -s https://laravel.build/example-app | bash to Invoke-WebRequest and it turns out abracadabra. I'm not sure, but probably something like

Invoke-WebRequest -s https://laravel.build/example-app | bash

How to force curl commands implementation using?

cheiser
  • 37
  • 6
  • `curl` is a built-in alias for `Invoke-WebRequest`. You can either call `curl.exe -s ...` instead of `curl -s`, or remove the alias with `Remove-Alias curl` – Mathias R. Jessen Mar 30 '22 at 09:29

0 Answers0