简体   繁体   English

如何在Windows上使用Elixir的混合脚本?

[英]How to use mix script of elixir on Windows?

My elixir version is Elixir 1.5.2 with OTP 20 on Windows 10. Everytime to run mix on PowerShell, I must first run command 我的elixir版本是Windows 10上具有OTP 20的Elixir 1.5.2。每次在PowerShell上运行mix时,我都必须先运行命令

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Set-ExecutionPolicy-范围过程-ExecutionPolicy绕过

Or it will tell me Program Files\\Elixir\\bin\\mix.ps1 cannot load because there is no digital sign. 否则它将告诉我Program Files \\ Elixir \\ bin \\ mix.ps1无法加载,因为没有数字符号。

Is there any better way instead of change ExecutionPolicy every time? 有什么更好的方法代替每次更改ExecutionPolicy吗?

I am not sure how mix.ps1 got on your machine but either rename it or delete it. 我不确定mix.ps1是如何在您的计算机上安装的,但是可以重命名或删除它。 You want to run mix.bat 您想运行mix.bat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM