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

Awais-cb
0
Awais-cb
commented 5 months ago

just installed nuxt starter template with new project and just changes the title in nuxt.config.js re ran the dev server again and i am constanly getting this error why is that? i am using windows OS i have node > 8 installed

[email protected] dev C:\xampp\htdocs\nuxt-warmup
nuxt

[23:50:09] Building project
[23:50:09] Builder initialized
[23:50:09] Nuxt files generated
[23:50:13] Compiling client
[23:50:13] Compiling server
[23:50:27] Compiled server in 14s
[23:50:27] Compiled client in 15s
events.js:183
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE 127.0.0.1:3000
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle as _listen2
at listenInCluster (net.js:1392:12)
at GetAddrInfoReqWrap.doListen as callback
at GetAddrInfoReqWrap.onlookup as oncomplete
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Awais\AppData\Roaming\npm-cache_logs\2018-10-27T185027_670Z-debug.log

0
Awais-cb
0
Awais-cb
commented 5 months ago

i had this issue on windows solved it using the commands below remember these commands will only work in cmd not in gitbash
this command will give you the process id of the process running on that specific port

$ netstat -ano | find ":3000 "

this command will tell you which program is using this port

$ tasklist /fi "pid eq {process-id}"

and this will kill that process

$ taskkill /pid {process-id} /f

0
Awais-cb
0
Awais-cb
commented 5 months ago

or you can simply run task manager and kill node's process which is actually causing this error!

0
Informations
Question โ€ข Unresolved
#c59 - Created 5 months ago