Skip to content

Problems installing ng14 cli completion on macOS #23135

Closed
@moniuch

Description

@moniuch

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

No, a new feature

Description

I went to play with 14rc1 but since I don't have ng installed globally, I issued the following command npx @angular/cli new ng14
(from the WebStorm embedded terminal).

Once the new cli got installed, I was asked if I want the cli completion to be enabled. Answered yes.
The result in the terminal was something like: source<(ng completion script)

The completion did not work OOTB or even in a new terminal tab, decided to restart.
After the restart saw this in the reopened terminal:

image 2022-05-14 20-11-29

Then I realized the embedded terminal in WebStorm might have not been elevated so I repeated the entire ng new process from macOS Terminal. Unfortunately, I couldn't force the completion prompt to appear again. Now ng new proceeds now straight to the routing question. Don't really know how to mitigate this.

A clear and concise description of the problem...

🔬 Minimal Reproduction

🔥 Exception or Error

ng g c my-comp [tab] doesn't produce any output as expected, just a void macOS sound

🌍 Your Environment

I don't have ng installed globally so ng version results in ng command not found.



macOS Monterey 12.3.1
nvm
node -v 18.1


Anything else relevant?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions