real-dev / real

Real Dev Platform
https://real.dev
15 stars 1 forks source link

Problem with CLI installation on Windows 7 #10

Open rohshr opened 5 years ago

rohshr commented 5 years ago

Trying to install on powershell generates the following:

Add-Type : Cannot add type. The assembly 'System.IO.Compression.FileSystem' could not be found.
At line:5 char:9
+ Add-Type <<<<  -AssemblyName System.IO.Compression.FileSystem
    + CategoryInfo          : ObjectNotFound: (System.IO.Compression.FileSystem:String) [Add-Type], Exception
    + FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands.AddTypeCommand

Add-Type : Cannot add type. One or more required assemblies are missing.
At line:5 char:9
+ Add-Type <<<<  -AssemblyName System.IO.Compression.FileSystem
    + CategoryInfo          : InvalidData: (:) [Add-Type], InvalidOperationException
    + FullyQualifiedErrorId : ASSEMBLY_LOAD_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand

Hi, I am Real.Dev installer.
I'm going to install 'real' CLI for you.
It will be installed to C:\RealDev
Hang on, awesomeness is being downloaded
Method invocation failed because [System.Object[]] doesn't contain a method named 'split'.
At line:17 char:64
+ $version, $commit = (Get-Content -Path $env:TEMP\VERSION).split <<<< ('\n')[-1].split(' ')
    + CategoryInfo          : InvalidOperation: (split:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (403) Forbidden."
At line:18 char:17
+ $wc.DownloadFile <<<< ("https://static.real.dev/cli/commit-$commit/real-win.zip", "$env:TEMP\real-win.zip")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Unable to find type [System.IO.Compression.ZipFile]: make sure that the assembly containing this type is loaded.
At line:24 char:32
+ [System.IO.Compression.ZipFile] <<<< ::ExtractToDirectory("$env:TEMP\real-win.zip", $INSTALL_PATH)
    + CategoryInfo          : InvalidOperation: (System.IO.Compression.ZipFile:String) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound
zen0wu commented 5 years ago

Oh wow, thanks for reporting! I'll take a look

zen0wu commented 5 years ago

@rohshr I actually failed to reproduce this. Could you tell me what version of powershell, Windows and .NET framework you have installed?

rohshr commented 5 years ago

Powershell version: Major: 2 Minor: 0 Build: -1 Revision:-1 Windows 7 Pro 64 bit .NET framework 4.8.03761

zen0wu commented 5 years ago

@rohshr Let me try to find a machine with the same setup. If you're using a virtual machine, it would be really helpful to tell me where you found it :)

But anyways, you could download from our github release page and manually put it anywhere in your %PATH%. Here's the link: https://github.com/real-dev/real/releases/download/cli-1.2.2/real-win.zip