yo icon indicating copy to clipboard operation
yo copied to clipboard

Grunt server problem: Fatal error listen EACCES

Open efuentesp opened this issue 13 years ago • 9 comments

Hi, I'm new with this and I have a problem:

OS: Windows 7

node -v v0.10.19

npm -v 1.3.11

I've followed this instructions: http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower/

npm install -g yo grunt-cli bower npm install -g generator-angular yo angular bower install angular-bootstrap --save grunt server

And this is the error:

Running "server" task

Running "clean:server" (clean) task Cleaning .tmp...OK

Running "concurrent:server" (concurrent) task

Running "coffee:dist" (coffee) task

Running "compass:server" (compass) task directory .tmp/styles/ create .tmp/styles/main.css (0.717s) Compilation took 0.729s

Running "autoprefixer:dist" (autoprefixer) task File ".tmp/styles/main.css" created.

Running "connect:livereload" (connect) task Fatal error: listen EACCES

Elapsed time concurrent:server 4s autoprefixer:dist 194ms connect:livereload 6ms Total 4s

Am I doing something wrong?, Thank you in advance for any help.

efuentesp avatar Sep 26 '13 18:09 efuentesp

This issue is not related with yo.

rogeriopvl avatar Oct 29 '13 14:10 rogeriopvl

where can i find infroamtion about this issue? anyone knows?

sbmvenancio avatar Mar 31 '14 15:03 sbmvenancio

Check on your generator repository, but mostly check on StackOverflow as this doesn't look like a generator bug. Most probably it's a bug with your system's permissions.

SBoudrias avatar Mar 31 '14 15:03 SBoudrias

thanks for helping, it seems is windows permissions that is blocking me do you know any workaround for this?

sbmvenancio avatar Mar 31 '14 23:03 sbmvenancio

I too am having this issue. I thought that first running the command prompt as Administrator might help (you know, permissions); alas, it did not.

Here's a related StackOverflow question: http://stackoverflow.com/questions/20170746/how-to-change-auto-open-page-by-livereload-in-yeoman

jonashw avatar Apr 04 '14 20:04 jonashw

There might be a conflict related to the ports you are using for example to me in the Gruntfile.js adding "port:9002" in the livereload configuration solved the problem:

connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', livereload: 35729 }, livereload: { options: { port:9002, open: true, base: [ '.tmp', '<%= yeoman.app %>' ] } },

lauraliparulo avatar Apr 10 '14 13:04 lauraliparulo

lauraliparulo's solution is right, I also ran into this issue, by change the default port 8080 to 9876, it work now

flying3615 avatar May 24 '14 03:05 flying3615

@lauraliparulo Was a port conflict for me, your solution works great.

This isn't really a yeoman issue, it's more about how your personal machine is set up.

wutangpaul avatar May 28 '14 11:05 wutangpaul

I had a preexisting binding for port 9000. Removing it solved the problem.

dthunziker avatar Jul 07 '14 23:07 dthunziker