I'm using version 3.3.6 of this module. flatmap-stream was added by this commit: https://github.com/dominictarr/event-stream/commit/e3163361fed01384c986b9b4c18feb1fc42b8285 The new updates to the package on npm are very suspicious. 0.1.0: https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.0.tgz 0.1.1: https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.1.tgz 0.1.2: https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.2.tgz Regards. _Originally posted by @NewEraCracker in https://github.com/dominictarr/event-stream/issues/115_