Thursday, June 6, 2019

Issue with my app

Overview

The application is communcating fine with the database via postman however the application has started to develope some issues. I cannot publish posts and I get the following connections errors when I run the packages locally

Package build errors


TDI-MacBook-Air:udemy-MERN bob$ npm run dev

> udemy-mern@1.0.0 dev /Users/bob/Documents/GitHub/training/udemy-MERN
> concurrently "npm run server" "npm run client"

[1]
[1] > udemy-mern@1.0.0 client /Users/bob/Documents/GitHub/training/udemy-MERN
[1] > npm start --prefix client
[1]
[0]
[0] > udemy-mern@1.0.0 server /Users/bob/Documents/GitHub/training/udemy-MERN
[0] > nodemon server
[0]
[1]
[1] > client@0.1.0 start /Users/bob/Documents/GitHub/training/udemy-MERN/client
[1] > react-scripts start
[1]
[0] [nodemon] 1.19.0
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching: *.*
[0] [nodemon] starting `node server.js`
[0] events.js:174
[0]       throw er; // Unhandled 'error' event
[0]       ^
[0]
[0] Error: listen EADDRINUSE: address already in use :::5000
[0]     at Server.setupListenHandle [as _listen2] (net.js:1270:14)
[0]     at listenInCluster (net.js:1318:12)
[0]     at Server.listen (net.js:1405:7)
[0]     at Function.listen (/Users/bob/Documents/GitHub/training/udemy-MERN/node_modules/express/lib/application.js:618:24)
[0]     at Object.<anonymous> (/Users/bob/Documents/GitHub/training/udemy-MERN/server.js:22:5)
[0]     at Module._compile (internal/modules/cjs/loader.js:701:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
[0]     at Module.load (internal/modules/cjs/loader.js:600:32)
[0]     at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:531:3)
[0]     at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
[0]     at startup (internal/bootstrap/node.js:283:19)
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
[0] Emitted 'error' event at:
[0]     at emitErrorNT (net.js:1297:8)
[0]     at process._tickCallback (internal/process/next_tick.js:63:19)
[0]     at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
[0]     at startup (internal/bootstrap/node.js:283:19)
[0]     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
[0] [nodemon] app crashed - waiting for file changes before starting...
[1] Starting the development server...
[1]

No comments:

Post a Comment