반응형

The specified command ("completion") is invalid. For a list of available options,
run "ng help".

 

터미널을 열었는데 위와같은 오류가 표시됩니다. 

 

해결 방법

사용하는 터미널에 따라서 ~/.bashrc 또는 zshell ~/.zshrc 등에 파일에 "source <(ng completion script)" 부분을 주석처리 해줍니다.

# source <(ng completion script)

 

다만, Angular의 자동 완성 기능을 잃게 된다고 합니다.

 

반응형

'Angular > Angular Tip' 카테고리의 다른 글

[ Angular ] .gitignore .angular 폴더 .cache 폴더  (0) 2022.07.05
반응형

.gitignore 추가 관련

/.angular
/.angular/
.angular
.angular/cache
/.angular/cache
/.cache
/.cache/babel-webpack

 

.gitignore가 작동하지 않을 경우

$ git rm -r --cached .

$ git add .

$ git commit -m 'Fix Commit'

$ git push

 

 

 


Angular 홈페이지 내용

$ ng config cli.cache.environment all

$ ng config cli.cache.path ".cache/ng"

Angular 홈페이지 바로가기

 

 

반응형

+ Recent posts