这是我的第一个二郎项目,所以显然我还有很长的路要走。我的问题是Erlang一直在寻找一个名为".erlang“的文件。例如,这里是我的第一个项目咒语:
C:\Users\niels\Documents\Edev>mix new hello
=ERROR REPORT==== 25-Sep-2022::21:14:02.952000 ===
file:path_eval(["U:\\","c:/Users/niels/AppData/Roaming/erlang"],".erlang"): no such device or address
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/hello.ex
* creating test
* creating test/test_helper.exs
* creating test/hello_test.exs
Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:
cd hello
mix test
Run "mix help" for more commands.我的解释是,Erlang首先在U:驱动器的根目录中查找文件".erlang“( Windows将其设置为我的主文件夹),然后在我的私有"erlang”文件夹中查找。mix命令似乎起作用了,但该错误消息使我感到烦恼。我确实尝试创建了一个空文件".erlang“,并将其放入我的c:/Users/niels/AppData/漫游/erlang文件夹中,但是错误消息仍然存在。
发布于 2022-09-26 12:15:56
您使用的混合工具是用于灵丹妙药,而不是Erlang。您需要的Erlang等效工具是rebar3。
https://stackoverflow.com/questions/73847312
复制相似问题