Terminal hangs on `ng completion` script from Angular/CLI

Discussão em 'Angular' iniciado por Boots Stribling, Janeiro 9, 2025.

  1. My OSX terminal began hanging when I opened a new window and looking at the top of the window, it was taking a long time to exit the ng completion script. Took about 5 min for the script to exit after I was patient enough.

    Several things I tried (not knowing how to solve the issue):

    1. Return
    2. Ctrl+ j - line feed
    3. Ctrl + z - suspend
    4. Ctrl + c - interrupt
    5. Ctrl + q - quit
    6. Ctrl + s - restart output
    7. close, force quite, terminate, reopen terminal

    ref: https://www.oreilly.com/library/view/learning-the-unix/1565923901/ch01s04.html#:~:text=If%20you%20can%20type%20commands,%2DJ%20reset%20CTRL%2DJ.

    None of the above worked for me.

    What did work:

    1. Uninstall global angular/cli package with npm uninstall -g @angular/cli
    2. Verify uninstall with npm list -g --depth 0 and verify @angular/cli is not in list.
    3. Reinstall global angular/cli with npm install -g @angular/cli

    Hope this helps someone in the future.

    Continue reading...

Compartilhe esta Página