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.

"webpack-dev-server --content-base build" is failing.

See original GitHub issue

Hi,

I’ve cloned the repo. installed the npm packages but when i try to run “npm start” i get error.

Here is the error message: `

formsy-react@0.17.0 start /Users/hevmag/Projects/test/formsy-react-master webpack-dev-server --content-base build

events.js:141 throw er; // Unhandled ‘error’ event ^

Error: listen EADDRINUSE 127.0.0.1:8080 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at Server._listen2 (net.js:1237:14) at listen (net.js:1273:10) at net.js:1382:9 at GetAddrInfoReqWrap.asyncCallback as callback at GetAddrInfoReqWrap.onlookup as oncomplete

npm ERR! Darwin 15.3.0 npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start” npm ERR! node v4.2.6 npm ERR! npm v3.7.1 npm ERR! code ELIFECYCLE npm ERR! formsy-react@0.17.0 start: webpack-dev-server --content-base build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the formsy-react@0.17.0 start script ‘webpack-dev-server --content-base build’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the formsy-react package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack-dev-server --content-base build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs formsy-react npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls formsy-react npm ERR! There is likely additional logging output above.`

And the NPM debug log:

Pastebin

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
hevarcommented, Apr 13, 2016

I solved it by:

  1. Remove the /tmp folder (suggested by @hiro1107 ), or you can simply reboot your computer.
  2. rm -rf node_modules (deleten all npm packags)
  3. npm cache clean (clearing the cache)
  4. npm run start. You can replace start with one of the other scripts (deploy, test, examples and prepublish) depending on what you want to do.
1reaction
hiro1107commented, Mar 25, 2016

I got the same error. I deleted tmp folder and it is now working again. Hope it will help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack Dev Server Config - contentBase not working
I can assume the error appeared after migration to the latest version of Webpack/DevServer, they did several breaking changes, ...
Read more >
Unable to start webpack-dev-server · Issue #1229 - GitHub
Failed at the bootsratp-webpack@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
options has an unknown property 'contentbase' - You.com
I can assume the error appeared after migration to the latest version of Webpack/DevServer, they did several breaking changes, including devServer settings.
Read more >
DevServer - webpack
webpack-dev-server can be used to quickly develop an application. ... devServer: { contentBase: path.join(__dirname, "dist"), compress: true, port: 9000 }.
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