GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ng serve error 'This socket is closed' · Issue #3102 · angular/angular-cli

ng serve error 'This socket is closed' #3102

New issue
Copy link
New issue
Copy link
Closed
Closed
ng serve error 'This socket is closed'#3102
Copy link

Description

@nintschger
nintschger
opened on Nov 10, 2016
Issue body actions

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 --version and 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.

Reacted by Phillip Manwaring, RobertCollewijn, slubowsky, Andrea Venturi, Halil İbrahim Kalkan, Goszczu, Brendon Colburn, Patrício dos Santos, David Norton, Fei and 6 more

Activity

Next
  1. manwaring commented on Nov 10, 2016

    @manwaring
    manwaring
    on Nov 10, 2016
    More actions

    I get the same error when I run ng init - the command hangs, after manually exiting it returns the same message

  2. nullhart commented on Nov 10, 2016

    @nullhart
    nullhart
    on Nov 10, 2016
    More actions

    I am also having this error. (Windows 10 x64)

  3. manwaring commented on Nov 11, 2016

    @manwaring
    manwaring
    on Nov 11, 2016
    More actions

    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 Webster
  4. Marianogboo commented on Nov 11, 2016

    @Marianogboo
    Marianogboo
    on Nov 11, 2016
    More actions

    I am also having this error. started after i installed node 7.1. My project was fine until this.

  5. Nhiyhe commented on Nov 11, 2016

    @Nhiyhe
    Nhiyhe
    on Nov 11, 2016
    More actions

    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 cinkpen
  6. alberthoekstra commented on Nov 13, 2016

    @alberthoekstra
    alberthoekstra
    on Nov 13, 2016
    More actions

    Nhiyhe is right, after installing the node 6.9.1 LTS it's all good!

  7. nintschger commented on Nov 13, 2016

    @nintschger
    nintschger
    on Nov 13, 2016
    Author
    More actions

    can confirm that as well.

  8. tebeco commented on Nov 14, 2016

    @tebeco
    tebeco
    on Nov 14, 2016
    More actions

    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 React

  9. OdaiTu commented on Nov 14, 2016

    @OdaiTu
    OdaiTu
    on Nov 14, 2016
    More actions

    i 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 :(

  10. OdaiTu commented on Nov 14, 2016

    @OdaiTu
    OdaiTu
    on Nov 14, 2016
    More actions

    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 guys

  11. kylecollie commented on Nov 15, 2016

    @kylecollie
    kylecollie
    on Nov 15, 2016
    More actions

    Same problem - resolved by reverting to node 6.9.1

  12. uucly commented on Nov 15, 2016

    @uucly
    uucly
    on Nov 15, 2016
    More actions

    Same problem. Dont want to revert to node 6.9.1. Please quickfix

  13. seveves commented on Nov 15, 2016

    @seveves
    seveves
    on Nov 15, 2016
    More actions

    node v7.1.0 and same problem

  14. PacejetRepository commented on Nov 16, 2016

    @PacejetRepository
    PacejetRepository
    on Nov 16, 2016
    More actions

    same problem with v7.1.0

  15. 2 remaining items

  16. davidema79 commented on Nov 17, 2016

    @davidema79
    davidema79
    on Nov 17, 2016
    More actions

    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 [email protected]: 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.

  17. cubidobusinesssolutions commented on Nov 18, 2016

    @cubidobusinesssolutions
    cubidobusinesssolutions
    on Nov 18, 2016
    More actions

    Same Problem here with 7.1

  18. vmourac commented on Nov 19, 2016

    @vmourac
    vmourac
    on Nov 19, 2016
    More actions

    Thanks @ironmanwaring!
    Reverted to v6.9.1 and things went back to normal!

  19. vfedoriv commented on Nov 19, 2016

    @vfedoriv
    vfedoriv
    on Nov 19, 2016
    More actions

    This patch fix problem for me:
    nodejs/node#9542 (comment)

  20. feranto commented on Nov 20, 2016

    @feranto
    feranto
    on Nov 20, 2016
    More actions

    Yeap, reverted from 7.1 to 6.9 on windows 10 x64 and fixed it for me. Thanks!

  21. arfeifei commented on Nov 21, 2016

    @arfeifei
    arfeifei
    on Nov 21, 2016
    More actions

    workaround nodejs/node#9542 (comment)

  22. yanai101 commented on Nov 22, 2016

    @yanai101
    yanai101
    on Nov 22, 2016
    More actions

    same problam ... :-(

  23. StevenU8 commented on Nov 23, 2016

    @StevenU8
    StevenU8
    on Nov 23, 2016
    More actions

    Ditto. Same problem when running ng serve
    angular-cli: 1.0.0-beta.21
    node: 7.1.0

  24. vfedoriv commented on Nov 23, 2016

    @vfedoriv
    vfedoriv
    on Nov 23, 2016
    More actions

    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) [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)

    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
    #3102 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AK6Qckx4f3Zn2NXGkgXLKgouAXyScpVLks5rA82RgaJpZM4Kuy7M
    .

  25. plfgavilan commented on Dec 4, 2016

    @plfgavilan
    plfgavilan
    on Dec 4, 2016
    More actions

    The same works for me, install node 6.9

  26. wei2learn commented on Dec 6, 2016

    @wei2learn
    wei2learn
    on Dec 6, 2016
    More actions

    Same problem with node 7.1. But the latest version 7.2 is working.

    Reacted by James Prado
  27. filipesilva commented on Dec 29, 2016

    @filipesilva
    filipesilva
    on Dec 29, 2016
    Contributor
    More actions

    As @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.

  28. filipesilva
    closed this as completedon Dec 29, 2016
  29. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot
    angular-automatic-lock-botBot
    on Sep 6, 2019
    More actions

    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.

  30. angular-automatic-lock-bot
    locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.