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
5 Answers
I had this problem too, there is a new Node Version now (v7.2.0), I've updated, and it's working fine now.
1 Comment
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.
1 Comment
If you're using windows, i suggest you:
install chocolatey here: https://chocolatey.org/install, so you can easily install packages like nodejs with the command line.
Open a command prompt in admin mode and finally do:
> choco upgrade nodejs.install
Comments
I know this sounds silly, but try closing your terminal (all of them) then open up a new terminal and make sure you DON'T RESIZE the terminal window... then try it again.
could possibly be this same bug: https://github.com/npm/npm/issues/12887
