老师项目启动报错
来源: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 试试。
012018-02-22
相似问题
用VScode如何启动项目
回答 2
启动项目内存溢出
回答 1