
知乎日报没有 Web 版,坑了个爹,拿 node/express/react/webpack 练练手,做了一个(会持续更新)。
因知乎版权问题,请自行部署。
详细信息(包括截图)在这里: https://github.com/nonoroazoro/Zhihu-Daily-Reader
1 cuebyte 2015 年 9 月 1 日 滋瓷一个 |
2 crs0910 2015 年 9 月 1 日 star |
3 liqingcan 2015 年 9 月 1 日 via Android 支持 |
4 TashinV PRO 不知道该怎么用呢 |
5 nonoroazoro OP @TashinV 你去 Github 页面,我写了详细说明。就 3 步可以~ |
6 exuxu 2015 年 9 月 1 日 404 commits .... |
7 nonoroazoro OP @exuxu 哈哈,没注意。。。好讽刺! |
8 kingname 2015 年 9 月 1 日 http://daily.zhihu.com/story/7093354 这不就是 web 版吗~ |
9 nonoroazoro OP @kingname 这个对阅读太不友好。最大的问题:切换文章不方便。当然其他样式问题就不说了。 |
10 dotpig 2015 年 9 月 1 日 是我姿势不对吗? |
11 kyrre 2015 年 9 月 1 日 貌似 po 主是在 windows 下开发的。 类 Unix 环境下改一下 package.json, 把第 21 行的 SET 改为 env 就妥了。 just a workaround~ |
12 liteneo 2015 年 9 月 1 日 vs2013-- |
13 nonoroazoro OP @kyrre 是的。。。我这没 Linux 环境,回头看看改一下。 |
14 nonoroazoro OP @liteneo VS 显露王八之气啊!!!怎能不用啊。。。 |
15 nonoroazoro OP @dotpig 回头我改一下,之前没有环境测试非 Windows 。 |
16 dotpig 2015 年 9 月 2 日 |
17 nonoroazoro OP @dotpig 是的~我放到云上的话访问简单了但是版权有问题,不放的话本地第一次部署比较麻烦的。 |
18 orcusfox 2015 年 9 月 2 日 |
19 Mart 2015 年 9 月 2 日 额, 刚在 ubuntu 上部署了一下, 反正没成功 。 npm ERR! [email protected] startx: `export NODE_ENV=production&&node ./bin/www` npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the [email protected] startx script. npm ERR! This is most likely a problem with the zhihu-daily-reader package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! export NODE_ENV=production&&node ./bin/www npm ERR! You can get their info via: npm ERR! npm owner ls zhihu-daily-reader npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.19.0-25-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "startx" npm ERR! cwd /home/mart/Zhihu-Daily-Reader npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/mart/Zhihu-Daily-Reader/npm-debug.log npm ERR! not ok code 0 |
20 unique 2015 年 9 月 5 日 via Android star |
21 nonoroazoro OP @Mart 我在 Cygwin 里测试了一下,把 export NODE_ENV=production&&node ./bin/www 改成 env NODE_ENV=production&&node ./bin/www 即可。 已经同步到 Github 上了。 |
22 Mart 2015 年 9 月 8 日 @nonoroazoro 好的,我看看。 |