Ankit Patidar Ankit Patidar - 10 months ago 36
Node.js Question

Run 2 MEAN js project on same ubuntu system

I want to run more than one MEAN js 0.4.2 project using grunt.
First project is running properly by second project giving below error:-

[nodemon] starting `node --debug server.js`
Fatal error: Port 35729 is already in use by another process.
Warning: Use --force to continue.

change port in /config/env/default.js

port: process.env.PORT || 3002,

Please help.I have changed default port(/config/env/default.js) from 3000 to 3002 but still giving same error.


Issue is with the nodemon, two instances of nodemon tries to run on same port. Try to run

node server.js

Or, you can try to configure nodemon as well.