老师项目启动报错

来源:2-5 开发准备

慕容3495389

2018-02-20

> stock@0.0.0 start E:\stock

> ng serve


Port 4200 is already in use. Use '--port' to specify a different port.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! stock@0.0.0 start: `ng serve`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the stock@0.0.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Baby\AppData\Roaming\npm-cache\_logs\2018-02-20T07_35_09_676Z-debug.log


Process finished with exit code 1


写回答

1回答

JoJo

2018-02-22

这是说4200端口已经被占用了。是不是之前启动过没停止?如果没启动过,那么需要换个端口启动,ng server -p 4300 试试。

0
1
慕容3495389
怎么停止呢?
2018-02-22
共1条回复

Angular4.0从入门到实战 打造股票管理网站

Angular新特性,教你熟练使用 Angular 和 Typescript 开发组件式单页应用

2683 学习 · 1361 问题

查看课程