Running github elixir graphql api project

I’m new to elixir graphql api, I get these errors when I say mix phx.server for github project, what can I do?

GitHub - wbotelhos/graphql-with-absinthe-on-phoenix: GraphQL with Absinthe on Phoenix

ERROR
warning: use Mix.Config is deprecated. Use the Config module instead
config/config.exs:8

warning: use Mix.Config is deprecated. Use the Config module instead
config/dev.exs:1

==> argon2_elixir
could not compile dependency :argon2_elixir, “mix compile” failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile argon2_elixir”, update it with “mix deps.update argon2_elixir” or clean it with “mix deps.clean argon2_elixir”
==> graphql_with_absinthe_on_phoenix
** (Mix) “nmake” not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

What have you tried so far?

installs the dependencies

mix deps.get

creates the database

mix ecto.setup

run the server

mix phx.server

What have you tried so far to fix the error you got? Do you see where the error is in your output?

** (Mix) “nmake” not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

the error does not appear but when i say mix phx.server
localhost:4000 not going to browser

You need to read the output of your commands, check it again:

This error usually means that the tools to compile C code are missing in your environment or as the error say not in the PATH.

2 Likes

I’m new to Graphql api potions, I’m running a project on github, I get this error when I say mix deps.get or mix ecto.create

an exception was raised:
** (Mix.Error) “nmake” not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

    (mix 1.13.4) lib/mix.ex:515: Mix.raise/2
    (elixir_make 0.6.3) lib/mix/tasks/compile.make.ex:234: Mix.Tasks.Compile.ElixirMake.cmd/5
    (elixir_make 0.6.3) lib/mix/tasks/compile.make.ex:211: Mix.Tasks.Compile.ElixirMake.build/2
    (elixir_make 0.6.3) lib/mix/tasks/compile.make.ex:154: Mix.Tasks.Compile.ElixirMake.run/1
    (mix 1.13.4) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
    (mix 1.13.4) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
    (mix 1.13.4) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4
    (mix 1.13.4) lib/mix/tasks/compile.all.ex:59: Mix.Tasks.Compile.All.with_logger_app/2
defp deps do

  [

      {:argon2_elixir, "~> 2.4.0"},

      {:dataloader, "~> 1.0.10"},

      {:ecto_sql, "~> 3.6.2"},

      {:gettext, "~> 0.18.2"},

      {:jason, "~> 1.3.0"},

      {:phoenix_ecto, "~> 4.3.0"},

      {:phoenix_live_dashboard, "~> 0.4.0"},

      {:phoenix, "~> 1.5.9"},

      {:plug_cowboy, "~> 2.5.1"},

      {:postgrex, ">= 0.0.0"},

      {:telemetry_metrics, "~> 0.6.1"},

      {:telemetry_poller, "~> 0.5.1"},

      {:absinthe, "~> 1.7.0"},

      {:absinthe_plug, "~> 1.5.8"},

      {:elixir_make, "~> 0.6.3"},

      {:bcrypt_elixir, "~> 3.0.0"}

    ]

nmake sounds like a build tool, probably needed to build bcrypt or other packages native binaries? Are you running on a windows platform?

I’m running a project on github

Not 100% on what this implies, specifically, but can you install additional software somehow? Probably you need to install some compiler packages.

1 Like

yes i am working on windows

Merged threads, please avoid making multiple threads for the same issue.

1 Like

The problem is not solved, I asked another question.

This is the error from the first post here:

This is the error in the second post:

This is the same error.

1 Like

I need solutions, I am not need discussion pls

1 Like

The solution is to install the software the error says is missing. Not sure what more explanation you need.

This shows how you can get the C pipeline for comeonin working.

1 Like