Closed ghost closed 8 years ago
@lardconcepts It looks like somewhere along the way, the request module made a breaking change. This project specifies request v2.27.x, for which the example works, however.
Ah... when I installed from npm, I had to get the inconv and request packages manually as it didn't seem to install them. Should it have? Not sure what went wrong there. Thanks for spotting that - shall I log it as a ticket about the latest request breaking it?
when I installed from npm, I had to get the inconv and request packages manually as it didn't seem to install them. Should it have?
If you cloned feedparser and ran npm install
in the feedparser directory, it should have installed iconv and request (and mocha) -- all the devDependencies in the package.json
.
Digging through the git history of request, it looks like they broke this a loooooong time ago - in the 2.40.x to 2.41.x changeset, over a year ago. Specifically, this commit.
Not sure it's worth pointing out at this point, to be honest.
@lardconcepts I updated the examples to avoid future travelers falling into the same trap. Thanks for opening the issue.
node 5.4.0, npm 3.5.2, node-feedparser 1.4.4
I ran the SIMPLE example, and got the README example working well with a BBC News feed.
The Readme says:
OK, so after
npm install request iconv
I'm now getting this error:I'll throw my hands up and admit to being a node noob, but previously packages have just worked.
I realise the problem may lie elsewhere and I feel like I'm being really thick here, but any pointers would be appreciated. Here's my node packages tree. Thanks.