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?