Coder Social home page Coder Social logo

Comments (7)

sindresorhus avatar sindresorhus commented on August 19, 2024

EADDRINUSE means the port used (8000) is already in use by another process. I just committed a better error message for that.

It most likely has to do with you also using the 8000 port for the reload task. Change either of them and it should work.

from grunt-contrib-connect.

mattd avatar mattd commented on August 19, 2024

Nope, unfortunately not. Sorry - should have noted that earlier. Removing the reload tasks and all of the applicable mentions from my Gruntfile makes no difference. I still get the same port error.

from grunt-contrib-connect.

sindresorhus avatar sindresorhus commented on August 19, 2024

@mattd Can you try using a different port for the server task? Might be something else then using that port.

from grunt-contrib-connect.

mattd avatar mattd commented on August 19, 2024

Choosing from a bunch of totally random ports (6474, 2567, 8945) doesn't make any difference.

from grunt-contrib-connect.

sindresorhus avatar sindresorhus commented on August 19, 2024

Hmm, ok. Does the same thing happen with grunt connect? Which grunt version are you using?

from grunt-contrib-connect.

mattd avatar mattd commented on August 19, 2024

If I do grunt connect watch, the same thing happens. If I do just grunt connect, it (correctly) immediately closes because it's not watching.

For versions, my package.json looks like this: https://gist.github.com/3990775

from grunt-contrib-connect.

mattd avatar mattd commented on August 19, 2024

So after some deeper investigation, it looks like this is actually a bug in grunt-contrib-watch and not grunt-contrib-connect. I've created a new issue there. gruntjs/grunt-contrib-watch#12

from grunt-contrib-connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.