Mongo error, i can't run my two applications


I generated two projects with the AngularJS Full-Stack Generator. The problem is when i run the command gulp serve in both projects, only opens one of them. In the console of the other project it show me:

(node:1236) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. 

Error: listen EADDRINUSE
    at Object.exports._errnoException (util.js:1020:11)
    at exports._exceptionWithHostPort (util.js:1043:20)
    at Server._listen2 (net.js:1262:14)
    at listen (net.js:1298:10)
    at net.js:1408:9
    at _combinedTickCallback (internal/process/next_tick.js:83:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

I think the problem it has to be ports. But honestly i don’t know which file modify or how i need to do it. I know it could be simple, but i’m new in this.


It is your Node that is trying to use port 9000 for both applications.

If you want to run both at once, you can either set them to different ports manually, or set the to port 0, and it will randomly assign them a port.

NodeJS listen port documentation

Answered By – AndrewL

Answer Checked By – Katrina (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.