问题
When trying to ng serve a new angular project it return me an error
[error] Error: listen EACCES: permission denied 127.0.0.1:4200
    at Server.setupListenHandle [as _listen2] (net.js:1260:19)
    at listenInCluster (net.js:1325:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1458:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)
npm version : 6.4.1
angular cli version : 8.3.25
Node version : 10.15.2
What I've tryed
- Restart multiple times my computer
- I've tryed to find if the port was already in use with netstat -a -o -nbut no
- Change port and hostname to be sur : ng serve --host 0.0.0.0 --port 4401
- Tryed : npm cache clean --force --unsafe-perm
I am starting a new project in angular 8. I've didn't touche my angular projects since last year and all my old projects don't starts anymore with ng serve. I've look on the net and this error appends a lot with docker. I've install last week Docker sandbox on my laptop and add some problems of compatibility with it. Could it be related ?
来源:https://stackoverflow.com/questions/60913788/ng-serve-permission-denied-127-0-0-14200