vue.jsvisual-studio-codelocalhost

Local host: 8000, refuses to connect when attempting to run using Visual Studio Code


2I'm trying to execute a program using Vue.JS and I'm using a rich-text editor visual studio code, but every time I hit the run command I get this error:

Local host: 8000, refused to connect. Please see the image attached.


Solution

  • Try running lsof -i :8000 to check if that port is already busy.

    If something is running try running kill -9 <PID> for killing it.