Kris Sapin
Kris Sapin

Reputation: 115

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.

Upvotes: 0

Views: 942

Answers (2)

Kris Sapin
Kris Sapin

Reputation: 115

I get it, I did not run the npm run serve command on terminal in VS Code that's why it gave me an error as what I've posted. It's 100% working now.I've inserted the image below

I appreciate your answer Mr. Dipansh Khandewal. Thank you :)

Upvotes: 0

Dipansh Khandelwal
Dipansh Khandelwal

Reputation: 628

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.

Upvotes: 2

Related Questions