Notice
Recent Posts
Recent Comments
05-08 06:53
YESHTML5
install react-natvie 본문
반응형
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
위의 형태로 문제가 발생한경우
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로 사용하길 권장함.
반응형
'React,React-Native' 카테고리의 다른 글
Unable to boot device because it cannot be located on disk. (0) | 2022.01.16 |
---|---|
"xcodebuild" command but it exited with error code 65. (0) | 2022.01.16 |
"Unable to boot device" error message (0) | 2022.01.15 |
jquery Swiper Plugin (0) | 2018.11.23 |
javascript, Window confirm() Method (0) | 2018.11.20 |
Comments