NPM start, no resource showing up on endpoint

After following instructions, I had to change the default port from 5000 to 6000.
on npm start I see below logs

~/Development/mflix-js ⌚ 16:52:17
$ npm start

> server@1.0.0 start /Users/jeffrey.thomas/Development/mflix-js
> nodemon -L ./index.js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./index.js`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
(node:4136) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4136) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:4136) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:4136) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
(node:4136) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to MongoClient.connect.
listening on port 6000

when trying to access localhost:6000/status I get nothing.

Why did you had to do that?

What is your OS?

i am on OSx. Something else was running on port 5000 on my machine.

Strange… so I changed to port 5005 instead and its working.
Wonder what’s up with 6000 on my OS.
Turns out 6000 is reserved on chromium browser.
Here is a full list.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.