Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
TypeError: stream_1.pipeline is not a function

I try to start tests.

I use gulp CLI version: 2.3.0 Local version: 3.9.1

And I can use node only v9.10.0 or 10.13.0

I do gulp test

And get errors

26 10 2021 16:02:53.253:ERROR [karma-server]: UncaughtException: TypeError: stream_1.pipeline is not a function
    at Function.sendFile (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:271:26)
    at Server.serve (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:247:16)
    at Server.srv.on (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:207:22)
    at Server.emit (events.js:180:13)
    at parserOnIncoming (_http_server.js:642:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)
26 10 2021 16:02:53.253:ERROR [karma-server]: TypeError: stream_1.pipeline is not a function
    at Function.sendFile (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:271:26)
    at Server.serve (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:247:16)
    at Server.srv.on (C:\git-refinitiv\QuoteLine\node_modules\socket.io\dist\index.js:207:22)
    at Server.emit (events.js:180:13)
    at parserOnIncoming (_http_server.js:642:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)

My Gulpfile.js

var gulp = require("gulp");
var runSequence = require("run-sequence");
var testServer = require("./test/bin/server");
var argv = require("yargs").argv;
var requireDir = require("require-dir");

requireDir("./gulp-tasks");

gulp.task("pre-commit", ["eslint", "compile"]);

gulp.task("default", function () {
  gulp.watch("src/js/**/*.js", ["compile"]);
  runSequence(["eslint", "compile"]);
});

gulp.task("serve", function (next) {
  var env = "alpha";
  var port = argv.port || 3000;

  if (argv.beta) {
    env = "beta";
  } else if (argv.prod) {
    env = "prod";
  }

  testServer.start(argv.proxy, env, port, next);
});

I try to change node version, try to delete modules and install again

What am I doing wrong?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!