Bundle analyzer Error: listen EADDRINUSE :::8888
See original GitHub issueNode 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:
- Created 7 years ago
- Reactions:5
- Comments:30 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
This just means you already have something running on port 8888 (likely the same project, running in another window) 😃