How to change the server port from 3000?

后端 未结 7 1480
执笔经年
执笔经年 2021-02-07 03:57

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 \"sta

7条回答
  •  别那么骄傲
    2021-02-07 04:12

    Using Angular 4 and the cli that came with it I was able to start the server with $npm start -- --port 8000. That worked ok: ** NG Live Development Server is listening on localhost:8000, open your browser on http://localhost:8000 **

    Got the tip from Here

提交回复
热议问题