Github 长生不老药/混合:*(停止):在窗口上使用
当我尝试运行'iex-S mix phx.server'时,我得到错误:Github 长生不老药/混合:*(停止):在窗口上使用,github,erlang,elixir,phoenix,elixir-mix,Github,Erlang,Elixir,Phoenix,Elixir Mix,当我尝试运行'iex-S mix phx.server'时,我得到错误: iex(1)>2020-07-26T05:13:18.632000Z错误任务或asiteweb.Endpoint从#PID终止**(停止):eacces erlang.erl:2217::erlang.open_端口({:spawn_executable,'c:/Program Files/nodejs/npm.cmd'},[{:cd,“c:/workspace/orcasite/assets”},:stderr_to(s
iex(1)>2020-07-26T05:13:18.632000Z错误任务或asiteweb.Endpoint从#PID终止**(停止):eacces erlang.erl:2217::erlang.open_端口({:spawn_executable,'c:/Program Files/nodejs/npm.cmd'},[{:cd,“c:/workspace/orcasite/assets”},:stderr_to(stdout,:use)stdio,:exit(status,:binary,:hide,{:args,[“run”,“run”,“watch”],})(elixir 1.10.3)lib/system.ex:802:system.cmd/3(phoenix 1.4.0)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.12)proc_lib.erl:249::proc_lib.init_p_p_do_apply/3函数:&phoenix.endpoint.arg.watcher.watcher.watcher.watcher/3 S:[“npm”、[“run”、[“run“c:/workspace/orcasite/assets”]]
这类似于github问题,也是一个问题
我想问题是路径中的反斜杠,因为我在Windows 10上,我想知道如何安装elixir/mix/phoenix,这样就不会有问题了?没关系,我通过在C:\Program Files\nodejs中将npm.cmd重命名为npm.bat解决了这个问题。请删除这个问题或给出一个详细的正确答案。我也有同样的问题,并且将
.cmd
更改为.bat
也解决了此问题。但这为什么会导致权限错误?您是否能够解决此问题?