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.
6 Replies
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:
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:
If it's set to Restricted, you might need to change it to allow the script to run. You can do this by executing:
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.
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
Please download Deno manually from here: https://github.com/denoland/deno/releases/tag/v1.41.2
Thank you kindly, appreciate it.
Sorry which one am I supposed to download for Windows?
I'd use :
deno-x86_64-pc-windows-msvc.zip
Perfect, thank you!