吃完早餐去公司,打开项目准备搬砖,诶我昨天跑通的项目怎么运行不起来了!框框报错
10% building modules 1/1 modules 0 activeevents.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL 192.168.1.102:8002
at Server.setupListenHandle [as _listen2] (net.js:1343:19)
at listenInCluster (net.js:1401:12)
at doListen (net.js:1510:7)
at _combinedTickCallback (internal/process/next_tick.js:142:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
at Function.Module.runMain (module.js:696:11)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! renren-fast-vue@1.2.2 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the renren-fast-vue@1.2.2 dev 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\86151\AppData\Roaming\npm-cache\_logs\2020-07-27T00_55_16_991Z-debug.log
用高中的英语老本仔细读读,原来是ip不对,打开ipconfig看一看,果然ip有变化,之前在config中配置过这个,修改一下,成功跑通~