Notice
Recent Posts
Recent Comments
05-08 06:53
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

YESHTML5

install react-natvie 본문

React,React-Native

install react-natvie

슬/도/아/밤/ 2022. 1. 16. 02:15
반응형

node부터 확인

https://github.com/nvm-sh/nvm 들어가서 참고

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

터미널 종료후 다시 시작
version 확인 

// node,npm 버젼확인
node -v
npm -v

// 버젼이 낮은경우
nvm install --lts

위의 형태로 문제가 발생한경우

https://nodejs.org/en/ 

 

Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

에서 LTS 설치받아서도 설정할수있다. 
얼핏보면 nvm 으로 하는것이 편해보이긴한데, 충돌이 일어나서, "yarn ios" 실행시 오류가 나온다면 위의 
package형태로 설치하는 방법을 추천한다.


React-native 모듈실행

// yeshtml_app 대신에 프로젝트이름

npx react-native init yeshtml5_app --template react-native-template-typescript

 

github로 연동처리

// yeshtml5_app 프로젝트명

git remote add origin https://github.com/yeshtml5/yeshtml5_app.git
git branch -M main
git push -u origin main

 

node v16으로 올리니 충돌이 좀 일어난다.

2020.1.17 lts v16이지만 v12로 사용하길 권장함. 

 

반응형
Comments