修改bootstrap后报错

来源:2-5 开发准备

二农戏猪

2017-07-29

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


npm ERR! Windows_NT 10.0.15063

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"

npm ERR! node v6.10.2

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE

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 'ng serve'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the stock package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     ng serve

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs stock

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls stock

npm ERR! There is likely additional logging output above.


npm ERR! Please include the following file with any support request:

npm ERR!     C:\Users\39502\auction\npm-debug.log


写回答

1回答

JoJo

2017-07-31

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

这句话的意思是4200端口已经被占用,使用--port参数来指定一个不同的端口。

你是不是之前的应用没关,又启动了一个新的?

0
1
二农戏猪
是我的node的进程没关掉,控制台查询了占用4200端口的程序关掉就好了!
2017-07-31
共1条回复

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

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

2683 学习 · 1361 问题

查看课程