[nodemon] 1.19.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node index.js 1400
events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::4000
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at Server.setupListenHandle [as _listen2] (net.js:1367:14)
at listenInCluster (net.js:1408:12)
at Server.listen (net.js:1492:7)
at resolve (/Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:75:28)
at new Promise ()
at ApolloServer. (/Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:73:19)
at Generator.next ()
at /Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:7:71
[nodemon] app crashed - waiting for file changes before starting...`
it says there's something running on 4000, which I don't think there is, but anyway as a start how do I change the port number the server starts on?
When I type npm run start:slow the app crashes...
`➜ server git:(master) ✗ npm run start:slow
[nodemon] 1.19.1 [nodemon] to restart at any time, enter
rs
[nodemon] watching: . [nodemon] startingnode index.js 1400
events.js:183 throw er; // Unhandled 'error' event ^Error: listen EADDRINUSE :::4000 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at Server.setupListenHandle [as _listen2] (net.js:1367:14) at listenInCluster (net.js:1408:12) at Server.listen (net.js:1492:7) at resolve (/Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:75:28) at new Promise ()
at ApolloServer. (/Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:73:19)
at Generator.next ()
at /Users/james/Projects/egghead/server/node_modules/apollo-server/dist/index.js:7:71
[nodemon] app crashed - waiting for file changes before starting...`
it says there's something running on 4000, which I don't think there is, but anyway as a start how do I change the port number the server starts on?
many thanks