Windows 10 Phoenix新安装无法编译:fs Windows 10
在Windows 10上重新安装Elixir、Erlang、Phoenix等。我已经安装六角和钢筋多次。无论在各种Git或其他操作页面上读取多少“修复”,我都无法运行Windows 10 Phoenix新安装无法编译:fs Windows 10,windows-10,elixir,phoenix-framework,Windows 10,Elixir,Phoenix Framework,在Windows 10上重新安装Elixir、Erlang、Phoenix等。我已经安装六角和钢筋多次。无论在各种Git或其他操作页面上读取多少“修复”,我都无法运行mix phoenix.server。每次都是同样的错误 mix phoenix.server 系统找不到指定的路径。 =>fs(编译) **(Mix)无法编译依赖项:fs,“escript.exe”c:/Users/shawn.karber/.Mix/rebar“compile skip_deps=true deps_dir=“e
mix phoenix.server
。每次都是同样的错误
mix phoenix.server
系统找不到指定的路径。
=>fs(编译)
**(Mix)无法编译依赖项:fs,“escript.exe”c:/Users/shawn.karber/.Mix/rebar“compile skip_deps=true deps_dir=“e:/sandbox/phoenix/test/test/_build/dev/lib”命令失败。您可以使用“mix deps.compile fs”重新编译此依赖项,使用“mix deps.update fs”更新它,或使用“mix deps.clean fs”清除它。
我已经一次又一次地重新蚀刻、更新、重新编译、清理、重新安装,但我无法启动服务器。有人有过这方面的经验,或者知道如何解决它吗
节点6.9.1
Erlang19.0
长生不老药1.4.1
钢筋和钢筋3均已安装
所有路径都在我的路径中
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
我在rebar和Comeon上遇到了一些不同的问题,在读完本文之后,我不得不安装VC++并运行
mix deps.get
via cmd。也许这会对你有所帮助。发布你的mix.exs文件。@Onorio Catenacci根据要求添加了我的mix.exs。我倾向于同意@PatNowak的观点,但如果你发布你的mix deps.compile fs
command的输出,那会很有帮助。我在Windows 10上重新安装了最新的Phoenix、Live Dashboard和Elixir。以防您想了解如何分步执行并确保一切正常: