Created
May 12, 2025 08:34
-
-
Save abakum/c3caac2483dc4828786232600d45fe57 to your computer and use it in GitHub Desktop.
Install scoop.sh like chocolatey.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Попробовал: | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
Invoke-RestMethod : Запрос был прерван: Не удалось создать защищенный канал SSL/TLS. | |
строка:1 знак:1 | |
+ Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException | |
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand | |
Тогда посмотрел как это делает chocolatey.org: | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
Заменил community.chocolatey.org на get.scoop.sh: | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh/install.ps1')) | |
Initializing... | |
Downloading... | |
Creating shim... | |
Adding ~\scoop\shims to your path. | |
Scoop was installed successfully! | |
Type 'scoop help' for instructions. |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
irm -useb https://pixi.sh/install.ps1 | iex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ScoopInstaller/Install#27