Skip to content

Elixir install scripts not working on powershell 7 #14321

@LostKobrakai

Description

@LostKobrakai

Elixir and Erlang/OTP versions

Operating system

Windows 11

Current behavior

PS C:\Users\benni\Projekte\ets_companion> .\install.bat elixir@1.18.2 otp@27.1.2
checking OTP... 27 ok
downloading https://github.com/elixir-lang/elixir/releases/download/v1.18.2/elixir-otp-27.zip...
unpacking C:\Users\benni\.elixir-install\tmp\elixir-1.18.2-otp-27.zip
Expand-Archive : Der Befehl "Expand-Archive" wurde im Modul "Microsoft.PowerShell.Archive" gefunden, das Modul konnte
aber nicht geladen werden. Wenn Sie weitere Informationen wünschen, führen Sie "Import-Module
Microsoft.PowerShell.Archive" aus.
In Zeile:1 Zeichen:1
+ Expand-Archive -LiteralPath C:\Users\benni\.elixir-install\tmp\elixir ...
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Expand-Archive:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Expected behavior

Works no matter the powershell version. Windows seems to push people to use the new version with this message (translated from german by myself):

Install the new PowerShell for new Features and Improvements! https://aka.ms/PSWindows

/cc @wojtekmach

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions