본문 바로가기

나의 플랫폼/HybridApp

[NativeScript] 환경 설정

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

## 환경설정

https://docs.nativescript.org/start/quick-setup


1. Node.js 설치

[iOS]

- 설치 확인

node --version

만약 , node.js 버전이 나오지 않은 경우 아래 명령어로 설치 하시면 됩니다.

brew update (to download the latest updates) and then brew install node@8


[Windows]


윈도우는 Node.js (https://nodejs.org/ko/download/) 에서 다운 받아 설치하면 된다.


2. NativeScript 설치

[Window]

명령 프롬프트 창(cmd)를 관리자 계정으로 연다.


[iOS]

터미널 앱을 실행


그런 다음 아래 명령어를 실행 합니다.

npm install -g nativescript


3. iOS와 Android 환경설정


[Window]

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"


[iOS]

ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"


4. 환경 설정 체크

tns doctor


위 내용 대로 하면 우선 환경 설정은 완료 된다. 

설정 시 문제가 되었던 부분은 차근차근 올리도록 하겠다.


참조 )

xcode is not installed or is not configured properly

위와 같은 오류는 아래 명령어를 입력 하세요.

sudo xcode-select --reset

출처 : http://overengineer.net/fixing-nativescript-s-xcode-is-not-installed-or-is-not-configured-properly-on-macos



cocoapods is not installed or is not configured properly

위와 같은 오류는 아래 명령어를 입력 하세요.

sudo gem install cocoapods

출처 : https://github.com/NativeScript/nativescript-cli/issues/1310