In case you hadn't heard, scoop
is the cool new package manager on the block for Windows painless installs... displacing chocolatey
in the case you don't want to rely on admin console windows, or if you don't have admin on the box you are working on.
In a powershell window, run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Invoke-RestMethod : The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
At line:1 char:1
+ Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke
-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRe
stMethodCommand
Add-Type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
When you are done with your certificate issue, close the session and it will go back to its original certificate handling.
scoop bucket add extras
scoop install mingw gow vscode make