FED实验室 - 专注WEB端开发和用户体验

nodejs代码Error: listen EADDRINUSE 端口被占用

NODEJS 煦涵 4178℃ 0评论
?[1;32mroot@ubuntu:/var/www/angularGulpBrowserify# gulp dev
[17:19:07] Using gulpfile /var/www/angularGulpBrowserify/gulpfile.js
[17:19:07] Starting 'dev'...
gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead.
[17:19:07] Starting 'jshint'...
[17:19:07] Finished 'jshint' after 10 ms
[17:19:07] Starting 'watch'...
[17:19:07] Finished 'watch' after 231 μs
[17:19:07] Finished 'dev' after 19 ms

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at Server.listen (net.js:1138:5)
    at Function.app.listen (/var/www/angularGulpBrowserify/node_modules/express/lib/application.js:536:24)
    at Gulp.server.use.livereload.port (/var/www/angularGulpBrowserify/gulpfile.js:110:9)
    at module.exports (/var/www/angularGulpBrowserify/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:33:7)
    at Gulp.Orchestrator._runTask (/var/www/angularGulpBrowserify/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/var/www/angularGulpBrowserify/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/var/www/angularGulpBrowserify/node_modules/gulp/node_modules/orchestrator/index.js:134:8)

 

下面是「FED实验室」的微信公众号二维码,欢迎扫描关注:

FED实验室

行文不易,如有帮助,欢迎打赏!

赞赏支持or喜欢 (0)or分享 (0)
捐赠共勉
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址