DEV Community

Discussion on: Angular meets Phoenix/Elixir

Collapse
 
haohao1029 profile image
haohao1029

ng: ["build", "--watch"] come out with error below, who know how to fix:
[error] Task PhoenixAngularWeb.Endpoint started from #PID<0.568.0> terminating
** (stop) :eacces
erlang.erl:2213: :erlang.open_port({:spawn_executable, 'c:/Users/jinghao/AppData/Roaming/npm/ng.cmd'}, [:stderr_to_stdout, :use_stdio, :exit_status, :binary, :hide, {:args, ["build", "--watch"]}])
(elixir 1.10.3) lib/system.ex:802: System.cmd/3
(phoenix 1.4.17) lib/phoenix/endpoint/watcher.ex:15: Phoenix.Endpoint.Watcher.watch/3
(elixir 1.10.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(stdlib 3.8) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &Phoenix.Endpoint.Watcher.watch/3
Args: ["ng", ["build", "--watch"], []]