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

Install.sh fails in windows with error - Unexpected token 'https://deno.land/x/install/install.ps1' in expression or statement. #125

Closed
charan2009 opened this issue May 18, 2020 · 4 comments

Comments

@charan2009
Copy link

PS C:\Users\charanp> $iwr https://deno.land/x/install/install.ps1 -useb | iex
Unexpected token 'https://deno.land/x/install/install.ps1' in expression or statement.
At line:1 char:45

@MarkTiedemann
Copy link
Contributor

You are using $iwr rather than iwr. Just remove the $-sign. :)

@charan2009
Copy link
Author

charan2009 commented May 21, 2020

Thanks for the reply Mark.

However if i remove the $ symbol....i get following error
PS C:\Users\charanp> iwr https://deno.land/x/install/install.ps1 -useb | iex
The term 'iwr' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
g of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4

Do i need to install anything else before installing deno...
iam using windows 7

@lucacasonato
Copy link
Member

I don't know if the iwr alias is available on Windows 7.

Can you try Invoke-WebRequest https://deno.land/x/install/install.ps1 -useb | iex?

@MarkTiedemann
Copy link
Contributor

Windows 7 was released in 2009. Windows 8 was released in 2012.

Invoke-WebRequest was introduced in PowerShell 3.0, which was released in 2012 with Windows 8.

@charan2009 I'm sorry but the PowerShell installer won't work on Windows 7.


Then again, you don't need the installer. You can install Deno manually. :)

Deno ships as a single executable file that you can download from the releases page (https://github.com/denoland/deno/releases). For more details, please check this comment: denoland/deno#5727 (comment)


On yet another note, I don't know whether anyone has tested Deno on Windows 7 yet. It may or may not work...


ref #130


cc @bartlomieju, I think this issue can be closed now.

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

4 participants