已经用了
sudo npm run dev
然后总是提示
✖ 「 wds 」: Error: listen EACCES: permission denied 192.168.0.126:443
at Server.setupListenHandle [as _listen2] (node:net:1302:21)
at listenInCluster (node:net:1367:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1505:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8) {
code: 'EACCES',
errno: -13,
syscall: 'listen',
address: '192.168.0.126',
port: 443
}
也已经用了
sudo lsof -i:443
命令去查了占用,该 kill 的也都 kill 了,还是不行,怎么办
1
dingwen07 2022-03-03 00:52:07 +08:00
试了下 python 的 http.server ,不用 sudo 都可以,只是第一次运行弹出了防火墙允许传入连接的请求
|
2
kid740246048 2022-03-03 03:03:54 +08:00
|
3
dangyuluo 2022-03-03 03:08:50 +08:00
|