Showing results for 
Show  only  | Search instead for 
Did you mean: 

“Localhost refuses to connect” with npm start

I simply want to work on this Bootstrap project of mine, but I can't because I can't test anything on my local server. In my browser, I get the error 'Localhost refuses to connect'. And under that it says, ERR_CONNECTION_REFUSED. It's also serving it up on port 3443 automatically for some reason when I thought it usually did on port 3000. Even when I type 'localhost:3000' manually into the url bar, it still refuses to connect. I feel like this is the main part of the problem actually. I don't think I started having these problems until I downloaded McAfee. I've since disabled the McAfee Firewall and McAfee Web Advisor in the meantime. Anyway, I don't know if this helps, but here is the content of my package.json, gulpfile.js, and my bash terminal output when trying to execute 'npm start', respectively:


    "title": "Small Business",
    "name": "startbootstrap-small-business",
    "version": "4.2.1",
    "scripts": {
        "start": "node_modules/.bin/gulp watch"
    "description": "A small business HTML template built with Bootstrap",
    "keywords": [
    "homepage": "",
    "bugs": {
        "url": "",
        "email": "**personal information omitted**"
    "license": "MIT",
    "author": "Start Bootstrap",
    "contributors": [
        "David Miller ("
    "repository": {
        "type": "git",
        "url": ""
    "dependencies": {
        "bootstrap": "4.3.1",
        "jquery": "3.4.1"
    "devDependencies": {
        "browser-sync": "2.26.7",
        "del": "^4.1.1",
        "gulp": "4.0.2",
        "merge-stream": "2.0.0"

Download iMessage for PC
1 Reply
McAfee Retired
McAfee Retired
Report Inappropriate Content
Message 2 of 2

Re: “Localhost refuses to connect” with npm start

Please help with name of the McAfee product installed on your machine. 

How Many Badges Can You Collect?
Ready for a little competition? Members like you are earning badges and unlocking perks for their helpful answers. Are you? Click here to find out.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community