angular-cli修改端口号
来源:互联网 发布:淘宝网机顶盒比价 编辑:程序博客网 时间:2024/06/01 10:22
方法一:修改配置文件node_modules/angular-cli/lib/config/schema.json
default值就是默认的端口:4200
方法二:命令行修改端口号
ng server –port 4201
(ng serve –host localhost –port 4201)
阅读全文
来源:互联网 发布:淘宝网机顶盒比价 编辑:程序博客网 时间:2024/06/01 10:22
方法一:修改配置文件node_modules/angular-cli/lib/config/schema.json
default值就是默认的端口:4200
方法二:命令行修改端口号
ng server –port 4201
(ng serve –host localhost –port 4201)