phoenix框架-新套接字上的无效参数-Windows [英] phoenix framework - invalid argument at new Socket - windows
本文介绍了phoenix框架-新套接字上的无效参数-Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法运行新的phoenix应用程序.这是我得到的错误;我不确定是什么原因.
I'm not able to run a new phoenix app. This is the error I'm getting; I'm not sure what the reason could be.
我尝试更改端口,但没有更改行为.另外,看来我能够正确运行节点.
I tried changing the port, which didn't change the behaviour. Also, it seems like I'm able to run node correctly.
Compiled web/views/error_view.ex
Compiled web/controllers/page_controller.ex
Compiled web/views/page_view.ex
Compiled web/views/layout_view.ex
Compiled lib/test_phoenix/endpoint.ex
Generated test_phoenix app
[info] Running TestPhoenix.Endpoint with Cowboy on port 4000 (http)
net.js:156
this._handle.open(options.fd);
^
Error: EINVAL, invalid argument
at new Socket (net.js:156:18)
at process.stdin (node.js:664:19)
at bindWatcherEvents (c:\Desarrollo\Phoenix\test_phoenix\node_modules\brunch\l
ib\watch.js:597:12)
at c:\******\Phoenix\test_phoenix\node_modules\brunch\lib\watch.js:667:9
at c:\******\Phoenix\test_phoenix\node_modules\brunch\lib\watch.js:557:16
at c:\******\Phoenix\test_phoenix\node_modules\brunch\lib\watch.js:188:12
at c:\******\Phoenix\test_phoenix\node_modules\brunch\node_modules\async-e
ach\index.js:24:44
at c:\******\Phoenix\test_phoenix\node_modules\brunch\lib\watch.js:175:14
at Object.cb [as oncomplete] (fs.js:168:19)
推荐答案
我刚刚遇到了类似的问题,所以我按照Jose Valim的建议将Node更新为最新版本.这解决了问题.
I was just running into a similar problem and I updated Node to the latest version as Jose Valim suggested. That fixed the problem.
这篇关于phoenix框架-新套接字上的无效参数-Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文