Eva
Eva•10mo ago

Error Installing Deno using PowerShell

Hello, may I please ask for assistance in regards to installing Deno using PowerShell on VS Code. An error occurs when inputting this command: irm https://deno.land/install.ps1 | iex Thank you kindly.
No description
6 Replies
Deno AI Helper
Deno AI Helper•10mo ago
Hello! I'm sorry to hear you're encountering issues while installing Deno using PowerShell. Let's try to troubleshoot this together. 🦕 First, ensure that your PowerShell is running with sufficient privileges to install software. You might need to run PowerShell as an Administrator. To do this, search for PowerShell in the Start menu, right-click on it, and select "Run as Administrator". Once you have an elevated PowerShell prompt, try running the installation command again:
irm https://deno.land/install.ps1 | iex
irm https://deno.land/install.ps1 | iex
If you're still facing an error, it would be helpful to know the exact error message you're receiving. This can provide clues as to what might be going wrong. Additionally, make sure that your execution policy allows running scripts. You can check your current execution policy with the following command:
Get-ExecutionPolicy
Get-ExecutionPolicy
If it's set to Restricted, you might need to change it to allow the script to run. You can do this by executing:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
This command will allow you to run scripts that you've written or downloaded after confirming that they are safe. Please try these steps and let me know how it goes. If the problem persists, sharing the exact error message will be very helpful for further troubleshooting.
Eva
EvaOP•10mo ago
Thank you. The error still occurs. Here is the error message: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. tar.exe: Error opening archive: Failed to open 'C:\Users\evant.deno\bin\deno.zip' Remove-Item : Cannot find path 'C:\Users\evant.deno\bin\deno.zip' because it does not exist. At line:39 char:1 + Remove-Item $DenoZip + ~~~~ + CategoryInfo : ObjectNotFound: (C:\Users\evant.deno\bin\deno.zip:String) [Remove-Item], ItemNotFoundEx ception + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Leokuma
Leokuma•10mo ago
Please download Deno manually from here: https://github.com/denoland/deno/releases/tag/v1.41.2
Eva
EvaOP•10mo ago
Thank you kindly, appreciate it. Sorry which one am I supposed to download for Windows?
Fifth-Normal-Form
Fifth-Normal-Form•10mo ago
I'd use : deno-x86_64-pc-windows-msvc.zip
Eva
EvaOP•10mo ago
Perfect, thank you!

Did you find this page helpful?