ng serve error 'This socket is closed'
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.19-3 node: 7.1.0 os: win32 x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
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.
Normally this include a stack trace and some more information.
events.js:160
throw er; // Unhandled 'error' event
^
Error: This socket is closed
at WriteStream.Socket._writeGeneric (net.js:683:19)
at WriteStream.Socket._write (net.js:734:8)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at WriteStream.Writable.write (_stream_writable.js:247:11)
at WriteStream.Socket.write (net.js:661:40)
at WriteStream.process.stderr.write (C:\Users\nino_\Documents\Angular\Projects\test_project\node_modules\angular-cli\lib\cli\index.js:32:27)
at Console.warn (console.js:51:16)
at printErrorAndExit (C:\Users\nino_\Documents\Angular\Projects\test_project\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:406:11)
at process.emit (C:\Users\nino_\Documents\Angular\Projects\test_project\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:419:16)
at process._fatalException (bootstrap_node.js:292:26)
Mention any other details that might be useful.
Thanks! We'll be in touch soon.
This patch fix problem for me: https://github.com/nodejs/node/issues/9542#issuecomment-259958895
Yeap, reverted from 7.1 to 6.9 on windows 10 x64 and fixed it for me. Thanks!
workaround https://github.com/nodejs/node/issues/9542#issuecomment-259958895
same problam ... :-(
Ditto. Same problem when running ng serve angular-cli: 1.0.0-beta.21 node: 7.1.0
NodeJS 7.2 release: 2016-11-22, Version 7.2.0 (Current), @Fishrock123
This 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) #9647
https://github.com/nodejs/node/pull/9647
- Fixed a potential buffer overflow when writing data to console on Windows 10. (CVE-2016-9551)
2016-11-23 7:22 GMT+02:00 Steven U [email protected]:
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 https://github.com/angular/angular-cli/issues/3102#issuecomment-262436785, or mute the thread https://github.com/notifications/unsubscribe-auth/AK6Qckx4f3Zn2NXGkgXLKgouAXyScpVLks5rA82RgaJpZM4Kuy7M .
The same works for me, install node 6.9
Same problem with node 7.1. But the latest version 7.2 is working.
As @ironmanwaring mentioned, this is an issue with node itself being tracked in https://github.com/nodejs/node/issues/9542.
Solutions seem to be downgrade to 6.9, or go to 7.2.
This 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.