Vous débutez sur AngularJS et vous rencontrez un problème après avoir exécuté vos commandes « YO ANGULAR » puis « GRUNT SERVE ».
En regardant attentivement votre Terminal, vous constatez l’erreur suivante :
Running "connect:livereload" (connect) task Fatal error: listen EADDRNOTAVAIL 127.0.0.127:9000
Mais alors, que faire ? Voici la solution :
Ouvrez dans votre framework le fichier Gruntfile.js.
Repérez à la ligne 70 le code suivant :
// The actual grunt server settings connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', livereload: 35729 },
Le problème vient du fait que vous devez corriger le code de la manière suivante, en remplaçant ‘localhost’ par ‘127.0.0.1’.
// The actual grunt server settings connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: '127.0.0.1', livereload: 35729 },