Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install deno with powershell behind corporate proxy #129

Closed
niyarlatotep opened this issue May 26, 2020 · 1 comment
Closed

Can't install deno with powershell behind corporate proxy #129

niyarlatotep opened this issue May 26, 2020 · 1 comment

Comments

@niyarlatotep
Copy link

If i set proxy explitly in iwr -Proxy, it stucks on:

+ Invoke-WebRequest $DenoUri -OutFile $DenoZip -UseBasicParsing
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [InvokeWebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Is there a way to improve this?

@MarkTiedemann
Copy link
Contributor

As a work-around, you can download https://deno.land/x/install/install.ps1, edit the file and set -Proxy (-ProxyCredential / -ProxyUseDefaultCredentials) for all other Invoke-WebRequest invocations, then run .\install.ps1.

Note that you can also manually download Deno. No "installation" is necessary. A release will ship a zip-file: https://github.com/denoland/deno/releases/download/v1.0.2/deno-x86_64-pc-windows-msvc.zip If you download and extract the zip-file, you will find deno.exe in there. (The install.ps1-script does the same: It determines the latest Deno version, then downloads and extracts the zip-file. It also adds Deno to your path - but you could do that manually, too.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants