vue-hackernews-2.0
vue-hackernews-2.0 copied to clipboard
安装之后无法运行,run dev 成功 但是在8080端口运行一直在加载
安装之后无法运行,run dev 成功 但是在8080端口运行一直在加载
数据库服务被墙的原因么
这个是因为获取数据的网站https://hacker-news.firebaseio.com 无法访问导致无法获取数据
翻越GFW后,就可以了,所以自备梯子吧。
我也遇到一样的问题,和墙是没有关系。页面一直在loading, 不知道怎么debug。。。
update:
网络不知道怎么了。网页没关,loading了几分钟(712588ms
)页面竟然打开了,后面再刷新也无比顺畅,难道这就是墙的威力么。。。我惊呆了
webpack built 87fea81662ead59622c2 in 4403ms
data pre-fetch: 712588ms
whole request: 712738ms
data pre-fetch: 2ms
whole request: 21ms
data pre-fetch: 2ms
whole request: 12ms
遇到了,还在编译中。。。。
各位的这个问题解决了吗,我也遇到这个问题了,翻墙之后也还是打不开页面,该怎么调试呀
要在console里翻墙,而不是浏览器
谢谢,我放到国外服务器就可以访问了,我以为我的GoAgentX也可以终端翻墙呢,原来不是呀
我也遇到了,是需要终端翻墙才开发访问。
https://juejin.im/entry/58d29f6161ff4b006cb218d9
mac上安装之后npm run dev,没有报错,提示编译成功,但是在浏览器无法打开localhost:8080
@njleonzhang 什么是console翻墙?
@chament Terminal里翻墙
成功了,先从浏览器访问一下 https://hacker-news.firebaseio.com ,必须翻墙,命令行翻墙,在mac配置成功了。不成功的同学想办法把https://hacker-news.firebaseio.com 配置可以访问吧
啊 ss NG配置全局没起作用,或者是我这边网速慢 不成功啊 (:з」∠)
命令行里,set https_proxy=http://ip:port和set http_proxy=http://ip:port
同样情况,求解啊,页面无法打开
项目被关闭了吗? @wsdo
@Niefee,需要设置代理,在命令行里设置这两句,set https_proxy=http://ip:port和set http_proxy=http://ip:port,然后再启动
@Niefee 我访问网站和你结果一样,提示“不存在或没权限”,你找到解决办法了吗
@ghjagus 没有,项目跑不起来。
各位,window下怎么设置呢?用蓝灯翻墙软件,可以翻墙了,但是这个项目还是打不开
@GitHub27 同样在 Terminal 里面设置代理。我用的 Cmder 这个 Terminal,set https_proxy=http://ip:port
和 set http_proxy=http://ip:port
,之后就可以了。之前需要先配置好本地的代理。
@zcdll 我用蓝灯的,不知道它的地址跟端口,这个怎样搞?
@Niefee 我没用过蓝灯,具体不清楚,不过你可以去它的设置界面看看有没有让填写端口号的地方
@FirstAurora183 curl ip.gs
看看终端是不是走的代理 不是的话应该还是要用privoxy配置
macOS + iTerm + zsh + shadowsocksX-NG 的用户
iTerm 中先看下现在的代理情况,如果显示是国内,说明需要代理,接着往下看。
$ curl cip.cc
IP : 123.126.87.90
地址 : 中国 北京
运营商 : 联通
数据二 : 北京市 | 联通数据中心
数据三 : 中国北京北京 | 联通
URL : http://www.cip.cc/123.126.87.90
- shadowsocksX-NG 开 PAC 或者全局模式,在小飞机上右键,有一个 Copy HTTP Proxy Shell Export Line,点击。

- iTerm 中,编辑 .zshrc 文件:
$ vim ~/.zshrc
-
将刚才从小飞机里复制出来的
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
粘贴进 zshrc,:wq
保存。 -
然后执行:
$ source ~/.zshrc
- 测试一下是不是成功了,如果你的城市还在中国大陆地区,说明没成功。
$ curl cip.cc
IP : 112.1xx.1xxx.xxx
地址 : 中国 香港 pccw.com
数据二 : 香港 | 电讯盈科有限公司
数据三 : 中国香港 | 电讯盈科
URL : http://www.cip.cc/112.120.127.106
-
npm run dev
吧, 🍺 🍺 🤣
@naoyeye
guojingwen /usr/local/etc/privoxy$curl ip.gs
<html>
<head>
<title>500 Internal Privoxy Error</title>
<link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>forwarding-failed</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory. The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file. (It's typically the Privoxy install directory, or <code>/etc/privoxy/</code>).</p>
</body>
</html>
guojingwen /usr/local/etc/privoxy$
怎么破?
@chenwenxian 按照你给的链接配置后 执行curl ip.gs 503错误怎么破?