question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bundle analyzer Error: listen EADDRINUSE :::8888

See original GitHub issue

Node version: v6.5.0

npm version: 3.10.3

Operating system: macos 10.12.1

Command line used: npm start

Steps to reproduce:

1, change some code under src. 2, save 3, Got the errmsg:

webpack: bundle is now VALID.


Unable to find bundle asset "/Users/jifeng/gitlab/cmbc/dist/bundle.js".
Analyzer will use module sizes from stats file.

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::8888
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at Server.listen (net.js:1385:5)
    at EventEmitter.listen (/Users/jifeng/gitlab/cmbc/node_modules/webpack-bundle-analyzer/node_modules/express/lib/application.js:617:24)
    at Object.startServer (/Users/jifeng/gitlab/cmbc/node_modules/webpack-bundle-analyzer/lib/viewer.js:57:14)
    at BundleAnalyzerPlugin.startAnalyzerServer (/Users/jifeng/gitlab/cmbc/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:78:12)
    at analyzeFn (/Users/jifeng/gitlab/cmbc/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:57:24)
    at Timeout._onTimeout (/Users/jifeng/gitlab/cmbc/node_modules/webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js:69:11)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:30 (8 by maintainers)

github_iconTop GitHub Comments

47reactions
mlwigdahlcommented, Nov 11, 2016

I got this to work by modifying the config options passed into the plugin:

new BundleAnalyzerPlugin({analyzerMode: 'static'})

This launches the analyzer page against the generated data file rather than the bundle itself, and works well to get past the issue when using hot reloading.

Good luck!

13reactions
coryhousecommented, Nov 6, 2016

This just means you already have something running on port 8888 (likely the same project, running in another window) 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack Bundle Analyzer gives error EACCES - Stack Overflow
This usually means port is already in use.. You need to kill the program using the above mentioned port. As you are using...
Read more >
webpack-bundle-analyzer - npm
Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap. Latest version: 4.7.0, ...
Read more >
listen EADDRINUSE: address already in use 127.0.0.1:8888
错误复现: Mac打包vue项目,执行yarnbuild提示ebpack-bundle-analyzer占用8888端口解决方案:1.查看8888端口sudolsof-i:88882.输入密码,
Read more >
webpack-bundle-analyzer报错端口被占用 - CSDN博客
关于webpack Error: listen EADDRINUSE: address already in use 127.0.0.1:3000解决.
Read more >
webpack-bundle-analyzer重复build报错- CodeAntenna
Webpack Bundle Analyzer is started at http://127.0.0.1:8888. 重点来了,当修改了一些文件,如果重新build控制台报错. listen EADDRINUSE 127.0.0.1:8888.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found