StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Got this error while working on the log out thing #36

Closed ghost closed 6 years ago

ghost commented 6 years ago

$ npm run dev

server@1.0.0 dev D:\workspace\server1 nodemon index.js

[nodemon] 1.18.3 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node index.js (node:13260) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. events.js:167 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE :::5000 at Server.setupListenHandle [as _listen2] (net.js:1328:14) at listenInCluster (net.js:1376:12) at Server.listen (net.js:1463:7) at Function.listen (D:\workspace\server1\node_modules\express\lib\application.js:618:24) at Object. (D:\workspace\server1\index.js:25:5) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:240:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3) Emitted 'error' event at: at emitErrorNT (net.js:1355:8) at process._tickCallback (internal/process/next_tick.js:63:19) at Function.Module.runMain (internal/modules/cjs/loader.js:746:11) at startup (internal/bootstrap/node.js:240:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3) [nodemon] app crashed - waiting for file changes before starting...