windows에서 Angular cli를 설치합니다.
> npm i -g @angular/cli
ng 명령을 실행하면 다음과 같은 에러가 발생합니다.
'ng' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다.
(the term 'ng' is not recognized as an internal or external command, operable program or batch file.)
%AppData%\npm 를 추가합니다. npm uninstall -g @angular/cli
npm cache clean --force
이 때 반드시 --force 옵션을 넣어야 합니다. 그렇지 않으면 실행이 취소되며 npm cache verify 를 권장합니다.
npm install -g @angular/cli