ng serve permission denied 127.0.0.1:4200

别说谁变了你拦得住时间么 提交于 2021-01-27 17:21:03

问题


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

  1. Restart multiple times my computer
  2. I've tryed to find if the port was already in use with netstat -a -o -n but no
  3. Change port and hostname to be sur : ng serve --host 0.0.0.0 --port 4401
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!