Error installing scoop command line installer

3.2k Views Asked by At

I am trying to install scoop in my Powershell but I'm getting an error which says:

Invoke-RestMethod: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Also the Get-ExecutionPolicy returns RemoteSigned.

I tried using the command irm get.scoop.sh | iex which returned the error I also tried using the other commands like iwr -useb get.scoop.sh | iex

3

There are 3 best solutions below

0
On

Step:1 Run the following command to install Scoop:

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

Ste:2 Restart PowerShell

0
On

try this commands it's work for me :

  1. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  2. iwr -useb get.scoop.sh -outfile 'install.ps1'
  3. .\install.ps1 -RunAsAdmin
  4. scoop install symfony-cli
0
On

iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

this PowerShell command works fine