Node.js the Right Way

Node.js the Right Way

Has anyone else been having major issues with cheerio? I cannot get it to parse through the rdf files properly. Some of the issues are with cheerio itself. I filed two problems on the github page with examples here:

They are slowly being resolved, but I’m wondering how the other readers are even able to make it past this section with the rdf-parser not working. Are you rolling back to older versions of cheerio? I started out using the exact one the book is using, and have since updated to the latest from the master branch on github.

This is what I have running the first command line test of the parser and the master branch of cheerio:

Much thanks to @EricOlson, @Saraf and @karnaf for all of your suggestions, which when combined worked for me.

@git trac or any other still having problems, try using this complete package.json config, with these specific versions for all modules. Sometimes specific combination don’t work together, but these definitely do work for me.

Thanks everyone for reporting (and fixing!) these issues. I’m sorry I didn’t add version information when writing the book, I really should have. It didn’t occur to me at the time that they’d make breaking changes to the cheerio API, but in retrospect I should have expected it.

Just want to confirm that Russell Wells’ post above mine is the solution to the problems with Cheerio. Roll back the version and change your test json file to match the updated contents of the RDF since the book was published.