Original issue: https://github.com/mqttjs/MQTT.js/issues/596. It was fixed by blocking the version of readable-stream to 2.2.6. cc @calvinmetcalf