在Windows 10上全新安装Elixir,Erlang,Phoenix等。我已多次安装Hex和rebar。无论在各种gits或其他how-to页面上阅读了多少“修复”,我都无法运行mix phoenix.server
。每次都有相同的错误。
mix phoenix.server
The system cannot find the path specified.
==> fs (compile)
** (Mix) Could not compile dependency :fs, "escript.exe "c:/Users/shawn.karber/.mix/rebar" compile skip_deps=true deps_dir="e:/sandbox/phoenix/test/test/_build/dev/lib"" command failed. You can recompile this dependency with "mix deps.compile fs", update it with "mix deps.update fs" or clean it with "mix deps.clean fs"
我一遍又一遍地重新编辑,更新,重新编译,清理,重新安装,我无法启动服务器。任何人都有这方面的经验或知道如何解决它?
node 6.9.1
erlang 19.0
elixir 1.4.1
rebar and rebar 3 both installed
all paths are in my PATH
defmodule Test.Mixfile do
use Mix.Project
def project do
[app: :test,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Test, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[{:phoenix, "~> 1.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"}]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end