Try to search your question here, if you can't find : Ask Any Question Now ?

Angular 6 – How to change default port 4200

HomeCategory: stackoverflowAngular 6 – How to change default port 4200
kundan asked 2 weeks ago

This question is specific to version 6 of Angular, not earlier, since .angular-cli.json file had been replaced by angular.json file.

I created a new Angular 6 project and tried, as I always did with previous versions, to change its default port but this time in angular.json.

  "defaults": {
    "serve": {
      "port": 4220
  },  

But get the following error:

Invalid schema detected in .angular-cli.json, please correct and try
again!

Does any one know how to do this with this new version of Angular ?

1 Answers
Best Answer
Mannu answered 2 weeks ago
Your Answer

16 + 2 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com