今天初次尝试weex,执行命令
weex 文件名.we
时遇到如下错误提示:(后来发现是QQ占用了端口)
info Tue Jul 05 2016 14:32:16 GMT+0800 (中国标准时间)WebSocket is listening on port 8082
info Tue Jul 05 2016 14:32:16 GMT+0800 (中国标准时间)http is listening on port 8081events.js:141throw er; // Unhandled 'error' event^
Error: listen EADDRINUSE 0.0.0.0:8082
at Object.exports._errnoException (util.js:1007:11)
at exports._exceptionWithHostPort (util.js:1030:20)
at Server._listen2 (net.js:1253:14)
at listen (net.js:1289:10)
at net.js:1399:9
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
解决方法:
在cmd中运行
netstat -aon | findstr 8082
找到占用的进程id ,应该是最后一列的数字
taskkill /f -pid 上面进程id
网友评论