使用egg-init时报错!
ConnectionTimeoutError: Connect timeout for 5000ms, GET https://registry.cnpmjs.org/egg-boilerplate-simple/latest -2 (connected: false, keepalive socket: false)
写的很清楚了,网络问题,多重试
一直没成功过,难道公司和家里的网络都有问题?
curl https://registry.cnpmjs.org/egg-boilerplate-simple/latest 试试
不行的话就 egg-init -r npm
并不管用...还是报同样的错误...
检查下你的防火墙啥的,这里就是一个简单的请求 https://registry.cnpmjs.org/egg-boilerplate-simple/latest
遇到一样的问题,用浏览器访问url没问题,用egg就报错
网络问题,自己检查下吧。 egg-init 里面只是做了一个 curl 而已。你浏览器可能是开代理了。
知道问题了,你说得对,原来egg的例子中的域名被墙了!!!希望作者更新例子,毕竟难得的国内框架。
试了几次成功了,不确定是什么问题
我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError
我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError
遇到同样的问题!坑啊!
curl 不了的同学,安装个 https://github.com/eggjs/egg-development-proxyagent 插件看看
我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError
也是,浏览器直接可以浏览json数据。但是eggjs中就无法curl到了。不能转至国内云提供例子数据服务么?
等新文档上线后,就是新的示例了。
When I'd restared my computer.. then it worked.
等新文档上线后,就是新的示例了。
When I'd restared my computer.. then it worked.
我的问题是,用了tnpm update以后,项目就跑不起来了,报错ConnectionTimeoutError: Connect timeout for 5000ms,再怎么 tnpm start和tnpm update 都没用,然后看到了重启可以修复我就试了一下。重启完还是一样的问题,然后我就再tnpm update了一下,就好了
Most helpful comment
When I'd restared my computer.. then it worked.