How to change the server port from 3000?



I just ended the tutorial of Angular 2 and I can’t find a way to change the localhost port from 3000 to 8000. In my package.json file there’s the line "start": "concurrent \"npm run tsc:w\" \"npm run lite\" " that I believe is related but I’m not sure.


You can change it inside bs-config.json file as mentioned in the docs

For example,

  "port": 8000,
  "files": ["./src/**/*.{html,htm,css,js}"],
  "server": { "baseDir": "./src" }

Answered By – Kalman

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More