ReduxSimpleStarter icon indicating copy to clipboard operation
ReduxSimpleStarter copied to clipboard

npm start - listen EACCES 127.0.0.1:8080

Open edevargas opened this issue 7 years ago • 10 comments

On windows. I execute npm install and then npm start and the following error is displayed:**

[email protected] start C:\wamp64\www\react\ReduxSimpleStarter node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js

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

Error: listen EACCES 127.0.0.1:8080 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at Server._listen2 (net.js:1245:19) at listen (net.js:1294:10) at net.js:1404:9 at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

edevargas avatar May 16 '17 17:05 edevargas

Same here I get the same error.

osolano avatar May 18 '17 04:05 osolano

same error for me.

mikkotan avatar May 19 '17 14:05 mikkotan

It is a conflicted port. Please choose another port to start Redux Simple Starter. Just update a bit in webpack.config.js:

devServer: {
    historyApiFallback: true,
    contentBase: './',
    port: 3000 // <--- Add this line and choose your own port number
  }

then run npm start again

nhtua avatar May 20 '17 07:05 nhtua

You are probably killing your process with CTRL-Z, try using CTRL-C. It will send a SIGINT that will end your program the right way, unbinding your process from any ports it is listening on.

cptdesro avatar May 20 '17 16:05 cptdesro

Just choose a different port in webpack.config.js

maraspiras avatar Jun 03 '17 00:06 maraspiras

yeah..started server

bsai avatar Jul 26 '17 09:07 bsai

Yes it is port issue, thank you guys

raviji avatar Apr 13 '20 10:04 raviji

It is a conflicted port. Please choose another port to start Redux Simple Starter. Just update a bit in webpack.config.js:

devServer: {
    historyApiFallback: true,
    contentBase: './',
    port: 3000 // <--- Add this line and choose your own port number
  }

then run npm start again

Cool it worked out. Thanks

sraakesh95github avatar Jul 28 '20 16:07 sraakesh95github

You can stop your IIS server from windows machines and its default port is :8080 then your problem solved.

raviji avatar Jul 31 '20 06:07 raviji

It is a conflicted port. Please choose another port to start Redux Simple Starter. Just update a bit in webpack.config.js:

devServer: {
    historyApiFallback: true,
    contentBase: './',
    port: 3000 // <--- Add this line and choose your own port number
  }

then run npm start again

thank you. that cool!

HienDoanTan avatar Apr 09 '21 14:04 HienDoanTan