This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12690|Reply: 0

[Angular] Modify the Angualr6 boot port

[Copy link]
Posted on 10/15/2018 3:18:03 PM | | | |
Prerequisite
When using vscode to open multiple Angulars, because the default port is 4200, if you start at the same time, it will show ""port occupied""", at this time we need to modify the default port!

Method 1: (Not tested)

Modify the configuration file "node_modules\@angular\cli\lib\config\schema.json", and then find port-default, you can modify the port number;



Method 2:

At startup, set the port startup parameters as follows:







Previous:Angular6 introduces jquery and bootstrap
Next:Beautiful login interface based on jQuery
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com