CS/Error

'ng'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

damzzi 2021. 10. 29. 20:18

https://ionicframework.com/docs/angular/pwa

 

Progressive Web Apps in Angular - Ionic Documentation

Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

ionicframework.com

 

 

 

PWA 만드려는데 아래와 같은 에러 뜸 

'ng'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

ng is not recognized as an internal or external command

 

 

 

구글링해보니 영어로 쳐야만 떴다 (그게 어디...)

https://stackoverflow.com/questions/37991556/ng-is-not-recognized-as-an-internal-or-external-command

 

ng is not recognized as an internal or external command

Running windows 7 Professional 32bit. I tried running npm install -g angular-cli both under normal or admin. I also tried adding it to the Enviorment Variables under PATH: (C:\Users\Administrator\

stackoverflow.com

 

 

 

node.js나 python 등등 명령어에도 이런 에러가 간혹 뜨는데

시스템 환경변수 설정에 해당 프로그램 경로 설정해주면 됨

환경변수 - 사용자변수 들어가서 

Angular 경로와 ng 경로를 각각 지정해 주고

 

cmd창 다시 열어서 진행하면 됨!!!

cmd에서 어떤 경로에서 ng add @angular/pwa 해줘도 상관없는 듯