I recently updated Windows and then tried installing Spicetify using the official PowerShell command: iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. Instead, PowerShell returned "The underlying connection was closed: The connection was closed unexpectedly" from Invoke-WebRequest. I'm not very familiar with PowerShell and was only using it because the installation instructions told me to paste the command there. Does anyone know what changed or how to fix this?
2 Answers
Windows PowerShell 5.1 may now require the -UseBasicParsing parameter for Invoke-WebRequest in some situations. Try adding it to the command, for example: iwr -UseBasicParsing -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. The installation instructions may need to be updated if they don’t include that option.
The exact command matters here, but the command you used is the installation command provided by the project, so using PowerShell isn’t inherently unusual. The error points to PowerShell failing while connecting to the script’s web address rather than necessarily indicating a problem with the app itself.

That’s the command I used from the installation guide. I’m not trying to learn PowerShell—I’m just following the setup steps to install the app.