跑步起来,npm run dev

This issue has been tracked since 2021-07-08.

PS D:\react\react-master> npm run dev

[email protected] dev D:\tanshuang\react\react-master
webpack-dev-server --config ./scripts/webpack.dev.config.js

events.js:292
throw er; // Unhandled 'error' event

ShuangDa1018 wrote this answer on 2021-07-08

[email protected] dev D:\tanshuang\react\react-master
webpack-dev-server --config ./scripts/webpack.dev.config.js

events.js:292
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE: address already in use 127.0.0.1:8888
at Server.setupListenHandle [as _listen2] (net.js:1313:16)
at listenInCluster (net.js:1361:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1498:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:68:8)
Emitted 'error' event on Server instance at:
at emitErrorNT (net.js:1340:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '127.0.0.1',
port: 8888
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack-dev-server --config ./scripts/webpack.dev.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\TWX1039639\AppData\Roaming\npm-cache_logs\2021-07-08T04_26_52_010Z-debug.log

duxianwei520 wrote this answer on 2021-07-27

看提示好像是你自己的端口被占用了吧@ShuangDa1018

More Details About Repo
Owner Name duxianwei520
Repo Name react
Full Name duxianwei520/react
Language JavaScript
Created Date 2016-12-02
Updated Date 2022-12-07
Star Count 4689
Watcher Count 199
Fork Count 1694
Issue Count 12

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date