window install problem
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\windows\system32> irm https://deno.land/install.ps1 | iex
>>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 40.5M 100 40.5M 0 0 2521k 0 0:00:16 0:00:16 --:--:-- 2275k
/usr/bin/tar: Cannot connect to C: resolve failed
Deno was installed successfully to C:\Users\yadav.deno\bin\deno.exe
Run 'deno --help' to get started
Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell
Update from PowerShell 5.1 to PowerShell 7 for your Windows platforms.
7 Replies
Whats the problem here, seems to be installed, check if deno is added to the path, if its not add it and the use it
That looks incorrect.
the line
Should have been
Note the missing backslash between yadav and ,deno.
Check that first path to see if it has a \bin folder in it.
If so something went wrong! Deno may have been added correctly in the path environment variable.
Please check your path environment variable.
in powershell enter $env:Path
It should contain: If it does, Deno may have been installed accidentally in the folder: rather than where it should be: If so, I would report this as a bug.
If so something went wrong! Deno may have been added correctly in the path environment variable.
Please check your path environment variable.
in powershell enter $env:Path
It should contain: If it does, Deno may have been installed accidentally in the folder: rather than where it should be: If so, I would report this as a bug.
Sorry missed that now that you point it out that is indeed a bug, it would bw wise to open an issue
But the script looks correct to me, have you set a DENO_INSTALL variable?
If you use the command without the env variable then it will indeed be installed to you home directory following .deno\bin
You can check the value using
$env:DENO_INSTALL
, see if you get any value if so just unset the variable and re runi was saw my folder C:\Users\yadav.deno\bin it is empty
i download form github repo then install but direct cli install not working well for me so try to investigate to it what is going on
I have the same problem and I'm looking for a solution.
The first time I installed it CLI commands were ok but now I reopened it and they are not working anymore