Skip to content

Elixir install scripts not working on powershell 7 #14321

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

Open
LostKobrakai opened this issue Mar 10, 2025 · 0 comments
Open

Elixir install scripts not working on powershell 7 #14321

LostKobrakai opened this issue Mar 10, 2025 · 0 comments

Comments

@LostKobrakai
Copy link
Contributor

LostKobrakai commented Mar 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants