【发布时间】:2014-12-10 07:56:06
【问题描述】:
我在 Windows8 上使用 Elixir 的 Phoenix 框架时遇到了严重的问题。在解决了大多数特定于平台的错误之后,一个错误告诉我找不到 rebar 并且没有编译牧场。我什至已经将钢筋放在我的环境路径中,但它仍然在抱怨。总而言之,编译ranch应该怎么做,下面有报错的例子。
Programming PC@PROGRAMMING-PC ~/Documents/GitHub/Elixir/phoenix ((v0.6.1))
$mix phoenix.new newapp ~/newapp
'c:/Program' is not recognized as an internal or external command,
operable program or batch file.
←[31m←[1m** (Mix) Could not compile dependency ranch, c:/Program Files/rebar/reb
ar.cmd command failed. If you want to recompile this dependency, please run: mix
deps.compile ranch←[0m
【问题讨论】:
-
'c:/Program' is not recognized as an internal or external command部分表示对rebar路径中的空间不满意。也许您可以尝试将它放在其他地方,在不包含空格的路径中作为快速修复。 -
感谢您的评论也帮助我找到了解决方案。如果您不介意,您可以投票赞成我的问题或我的答案吗?我需要积分才能开始投票。更不用说我确信 Windows 上的其他开发人员可能会遇到这个恼人的错误。