Grunt server problem: Fatal error listen EACCES
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.
This issue is not related with yo.
where can i find infroamtion about this issue? anyone knows?
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.
thanks for helping, it seems is windows permissions that is blocking me do you know any workaround for this?
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
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's solution is right, I also ran into this issue, by change the default port 8080 to 9876, it work now
@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.
I had a preexisting binding for port 9000. Removing it solved the problem.