Repository navigation
ng serve error 'This socket is closed' #3102
Description
Activity
I get the same error when I run ng init - the command hangs, after manually exiting it returns the same message
I am also having this error. (Windows 10 x64)
It looks like the cause might be in Node 7.1.0 itself: nodejs/node#9542
Reacted by Victor Moura Cortez, Fei, cinkpen and Andrew WebsterI am also having this error. started after i installed node 7.1. My project was fine until this.
I had the same problem, got it fixed by uninstall node 7.1.10 and installed node 6.9.1 LTS and it works...
Reacted by Oleg Lazarenko and cinkpenNhiyhe is right, after installing the node 6.9.1 LTS it's all good!
can confirm that as well.
is the issue really in NodeJS ? or should Angular CLI be updated ?
seems to work in company without angular cli to serve either Angular 1.x or Reacti have nodejs : 7.1.0
npm : 3
and install npm install -g angular-cli just now
and i have the same error when write command : ng serve
so what is the solution plz :(lol
the problem resloved by uninstall the node :7.1.0 and install the node :6.9.1
but i think this is not the right solution guysSame problem - resolved by reverting to node 6.9.1
Same problem. Dont want to revert to node 6.9.1. Please quickfix
node v7.1.0 and same problem
same problem with v7.1.0
2 remaining items
Same problem here, I had to revert to Node 6.9.1 (Win10-x64)
When I reinstalled angular-cli I notice the following WARNING. Might our problem be related to this in someway?
$>npm install -g angular-cli npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.Thanks in advance for your hard work.
cubidobusinesssolutions commented
on Nov 18, 2016 More actionsSame Problem here with 7.1
Thanks @ironmanwaring!
Reverted to v6.9.1 and things went back to normal!This patch fix problem for me:
nodejs/node#9542 (comment)Yeap, reverted from 7.1 to 6.9 on windows 10 x64 and fixed it for me. Thanks!
workaround nodejs/node#9542 (comment)
same problam ... :-(
Ditto. Same problem when running ng serve
angular-cli: 1.0.0-beta.21
node: 7.1.0NodeJS 7.2 release:
2016-11-22, Version 7.2.0 (Current), @Fishrock123This is a security release impacting Windows 10 users.
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V7.md#notable-changesNotable
changes- libuv: Upgrade to v1.10.1 (cjihrig) [1.7.0] ng serve not properly killed on CTRL+C with yarn/npm #9647
deps: upgrade libuv to 1.10.1 nodejs/node#9647- Fixed a potential buffer overflow when writing data to console on
Windows 10. (CVE-2016-9551)
- Fixed a potential buffer overflow when writing data to console on
2016-11-23 7:22 GMT+02:00 Steven U notifications@github.com:
Ditto. Same problem when running ng serve
angular-cli: 1.0.0-beta.21
node: 7.1.0—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3102 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK6Qckx4f3Zn2NXGkgXLKgouAXyScpVLks5rA82RgaJpZM4Kuy7M
.- libuv: Upgrade to v1.10.1 (cjihrig) [1.7.0] ng serve not properly killed on CTRL+C with yarn/npm #9647
The same works for me, install node 6.9
Same problem with node 7.1. But the latest version 7.2 is working.
Reacted by James PradoAs @ironmanwaring mentioned, this is an issue with node itself being tracked in nodejs/node#9542.
Solutions seem to be downgrade to 6.9, or go to 7.2.
angular-automatic-lock-bot commented
on Sep 6, 2019 More actionsThis issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
- locked and limited conversation to collaborators
on Sep 6, 2019
OS?
Windows 10
Versions.
angular-cli: 1.0.0-beta.19-3
node: 7.1.0
os: win32 x64
Repro steps.
First it wasn't working on my already existing project. I tried it with a test-project created with
ng new, but still the same error.The log given by the failure.
Mention any other details that might be useful.