Answer the question
In order to leave comments, you need to log in
Gulp-connect is blocking the port, what should I do?
gulp.task('server', function() {
connect.server({
port: 5555,
root: 'build',
livereload: true
});
});
Error: listen EADDRINUSE :::5555
at Object.exports._errnoException (util.js:855:11)
at exports._exceptionWithHostPort (util.js:878:20)
at Server._listen2 (net.js:1237:14)
at listen (net.js:1273:10)
at Server.listen (net.js:1369:5)
at ConnectApp.server (D:\hosting\OpenServer\domains\new-kater.ru\front\node_modules\gulp-connect \index.js:62:19)
at new ConnectApp (D:\hosting\OpenServer\domains\new-kater.ru\front\node_modules\gulp-connect\index.js:38:10)
at Object.module.exports .server (D:\hosting\OpenServer\domains\new-kater.ru\front\node_modules\gulp-connect\index.js:185:12)
at Gulp. (D:\hosting\OpenServer\domains\new-kater.ru\front\gulpfile.js:32:11)
at module.exports (D:\hosting\OpenServer\domains\new-kater.ru\front\node_modules\orchestrator\lib\runTask.js:34:7)
Answer the question
In order to leave comments, you need to log in
connect.serverClose();
https://github.com/avevlad/gulp-connect Start and stop server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question