Anu Rajan Anu Rajan - 7 months ago 94
AngularJS Question

Node Js angular cli, ng serve error, socket closed

hello i am trying to learn angular framework with a udemy course. by following the course i am trying to run the server so i can display things in node js cmd line . when i run ng serve to run the server i am getting this socket closed error. see below pic. i am running windows 10 64 bit acer laptop. i have bracket editor,sublime . i dont know if any of these is interfering

enter image description here


The problem seems to be related to the node version you are using v7.1.0. Uninstall node and install a prior node version for example v6.9.1. Install angular-cli again and then run your project again.