Static GitHub Issues

[2787] Error when running npm run dev after installing nuxtjs

prev: can we access context object from a vue component ?
next: how to override the global middleware config in one page?

I am getting the following error when i run npm run dev after installing nuxt.js

$ npm run dev

simple-web-nuxtjs@1.0.0 dev D:\nuxtjs\learn-nuxtjs\simple-web-nuxtjs nuxt

2018-02-07T08:52:32.003Z nuxt:build App root: D:\nuxtjsv\learn-nuxtjs\simple-web-nuxtjs 2018-02-07T08:52:32.007Z nuxt:build Generating D:\nuxtjs\learn-nuxtjs\simple-web-nuxtjs.nuxt files... 2018-02-07T08:52:32.066Z nuxt:build Generating files... 2018-02-07T08:52:32.081Z nuxt:build Generating routes... 2018-02-07T08:52:32.144Z nuxt:build Building files... 2018-02-07T08:52:34.101Z nuxt:build Adding webpack middleware... DONE Compiled successfully in 7505ms15:52:41

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! simple-web-nuxtjs@1.0.0 dev: nuxt npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the simple-web-nuxtjs@1.0.0 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\Lenovo B490\AppData\Roaming\npm-cache_logs\2018-02-07T08_52_43_511Z-debug.log

nb: I use npm@5.6.0 and node@v8.9.1

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2417">#c2417</a>)</em></sub></div>