Web/ionic

[Window] ionic 설치

WakaraNai 2021. 11. 24. 15:05
728x90
반응형

0. git 설치하기

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

 

1. nodejs LTS 버전 설치

https://nodejs.org/ko/download/

 

 

2. typescript 설치

npm install -g typescript

3. ionic 설치

npm install -g @ionic/cli

4. ionic 프로젝트 생성하기

ionic start

5. Window powershell 권한 풀기

 

ionic 관련 명령어를 powershell에서 실행하다보면 이 보안 오류를 만나게 될 때

 

1. 관리자 권한으로 Window Powershell 열기

 

 

2. Set-ExecutionPolicy 설치하기
 get-help Set-ExecutionPolicy

이미 있다면 아래와 같은 바로 설명 메세지가 출력된다.

 

3. RemoteSigned로 설정

 

기본 설정은 Restricted로, 막혀있다.

RemoteSigned로 하면 로컬 컴퓨터에서 자신이 생성한 파일 또는 신뢰된 배포자의 서명이 있는 걸로 다운받은 파일만 실행 가능한 정책으로 정해진다.

 

6. 프로젝트 실행하기

이전에 시도한 ionic 명령어에서 에러가 안 뜨는지 확인하기

VScode powershell에서도 잘 작동한다

 

ionic serve는 웹 브라우저를 로컬로 돌려보는 것뿐

 

728x90
반응형