node-readability不能正常工作

来源:互联网 发布:淘宝拼图模块怎么用 编辑:程序博客网 时间:2024/04/28 03:43

最近系统中node-readability好像总是不能正常工作,

既然没改动代码,很有可能又是版本的问题,

因为用到了node-readability, iconv,jschardet,

不知道是哪个版本不对,

查看node-readability的网站,有如下一段话:


Note that as of our 2.0.0 release, this module only works with Node.js >= 2.0. In the meantime you are still welcome to install a release in the 1.x series(by npm install node-readability@1) if you use an older Node.js version.


https://github.com/luin/readability


因为我用的nodejs是0.10.17,所以必须安装readability 1版本的。


问题解决!

0 0