vue-hackernews-2.0 icon indicating copy to clipboard operation
vue-hackernews-2.0 copied to clipboard

安装之后无法运行,run dev 成功 但是在8080端口运行一直在加载

Open menglingyu opened this issue 7 years ago • 49 comments

安装之后无法运行,run dev 成功 但是在8080端口运行一直在加载

menglingyu avatar Aug 06 '17 02:08 menglingyu

数据库服务被墙的原因么

txinhua avatar Aug 23 '17 09:08 txinhua

这个是因为获取数据的网站https://hacker-news.firebaseio.com 无法访问导致无法获取数据

qiongshusheng avatar Aug 24 '17 12:08 qiongshusheng

翻越GFW后,就可以了,所以自备梯子吧。

xaclincoln avatar Sep 15 '17 02:09 xaclincoln

我也遇到一样的问题,和墙是没有关系。页面一直在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

njleonzhang avatar Sep 26 '17 11:09 njleonzhang

遇到了,还在编译中。。。。

heboliufengjie avatar Sep 29 '17 03:09 heboliufengjie

各位的这个问题解决了吗,我也遇到这个问题了,翻墙之后也还是打不开页面,该怎么调试呀

shreksu avatar Oct 11 '17 16:10 shreksu

要在console里翻墙,而不是浏览器

njleonzhang avatar Oct 12 '17 01:10 njleonzhang

谢谢,我放到国外服务器就可以访问了,我以为我的GoAgentX也可以终端翻墙呢,原来不是呀

shreksu avatar Oct 12 '17 04:10 shreksu

我也遇到了,是需要终端翻墙才开发访问。

chenwenxian avatar Oct 16 '17 09:10 chenwenxian

https://juejin.im/entry/58d29f6161ff4b006cb218d9

chenwenxian avatar Oct 16 '17 09:10 chenwenxian

mac上安装之后npm run dev,没有报错,提示编译成功,但是在浏览器无法打开localhost:8080

912380760 avatar Oct 23 '17 07:10 912380760

@njleonzhang 什么是console翻墙?

chament avatar Nov 07 '17 09:11 chament

@chament Terminal里翻墙

njleonzhang avatar Nov 07 '17 13:11 njleonzhang

成功了,先从浏览器访问一下 https://hacker-news.firebaseio.com ,必须翻墙,命令行翻墙,在mac配置成功了。不成功的同学想办法把https://hacker-news.firebaseio.com 配置可以访问吧

wsdo avatar Nov 11 '17 13:11 wsdo

啊 ss NG配置全局没起作用,或者是我这边网速慢 不成功啊 (:з」∠)

XavierShi avatar Nov 21 '17 09:11 XavierShi

命令行里,set https_proxy=http://ip:port和set http_proxy=http://ip:port

KoyoDevil avatar Nov 22 '17 05:11 KoyoDevil

同样情况,求解啊,页面无法打开

Niefee avatar Nov 29 '17 10:11 Niefee

qq 20171129183252 项目被关闭了吗? @wsdo

Niefee avatar Nov 29 '17 10:11 Niefee

@Niefee,需要设置代理,在命令行里设置这两句,set https_proxy=http://ip:port和set http_proxy=http://ip:port,然后再启动

KoyoDevil avatar Nov 29 '17 10:11 KoyoDevil

@Niefee 我访问网站和你结果一样,提示“不存在或没权限”,你找到解决办法了吗

ghjagus avatar Dec 04 '17 08:12 ghjagus

@ghjagus 没有,项目跑不起来。

Niefee avatar Dec 04 '17 09:12 Niefee

各位,window下怎么设置呢?用蓝灯翻墙软件,可以翻墙了,但是这个项目还是打不开

GitHub27 avatar Dec 05 '17 09:12 GitHub27

@GitHub27 同样在 Terminal 里面设置代理。我用的 Cmder 这个 Terminal,set https_proxy=http://ip:portset http_proxy=http://ip:port,之后就可以了。之前需要先配置好本地的代理。

crazcdll avatar Dec 05 '17 14:12 crazcdll

@zcdll 我用蓝灯的,不知道它的地址跟端口,这个怎样搞?

Niefee avatar Dec 06 '17 02:12 Niefee

@Niefee 我没用过蓝灯,具体不清楚,不过你可以去它的设置界面看看有没有让填写端口号的地方

crazcdll avatar Dec 06 '17 07:12 crazcdll

@FirstAurora183 curl ip.gs看看终端是不是走的代理 不是的话应该还是要用privoxy配置

pinkliar avatar Dec 14 '17 02:12 pinkliar

image

Guanyuhao avatar Dec 14 '17 07:12 Guanyuhao

macOS + iTerm + zsh + shadowsocksX-NG 的用户

iTerm 中先看下现在的代理情况,如果显示是国内,说明需要代理,接着往下看。

$  curl cip.cc
IP	: 123.126.87.90
地址	: 中国  北京
运营商	: 联通

数据二	: 北京市 | 联通数据中心

数据三	: 中国北京北京 | 联通

URL	: http://www.cip.cc/123.126.87.90
  1. shadowsocksX-NG 开 PAC 或者全局模式,在小飞机上右键,有一个 Copy HTTP Proxy Shell Export Line,点击。
  1. iTerm 中,编辑 .zshrc 文件:
$ vim ~/.zshrc
  1. 将刚才从小飞机里复制出来的 export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; 粘贴进 zshrc,:wq 保存。

  2. 然后执行:

$ source ~/.zshrc
  1. 测试一下是不是成功了,如果你的城市还在中国大陆地区,说明没成功。
$ curl cip.cc
IP	: 112.1xx.1xxx.xxx
地址	: 中国  香港  pccw.com

数据二	: 香港 | 电讯盈科有限公司

数据三	: 中国香港 | 电讯盈科

URL	: http://www.cip.cc/112.120.127.106
  1. npm run dev 吧, 🍺 🍺 🤣

naoyeye avatar Dec 19 '17 06:12 naoyeye

@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$

怎么破?

guojingwen avatar Dec 30 '17 06:12 guojingwen

@chenwenxian 按照你给的链接配置后 执行curl ip.gs 503错误怎么破?

guojingwen avatar Dec 30 '17 12:12 guojingwen