[Enact] Linux 환경에서 Enact 설치부터 빌드까지
개요
Linux 환경에서 Enact 설치 및 빌드 가이드: Node.js 설치부터 VS Code와 Git 설정, SSH 키 생성, 그리고 Enact 프로젝트 빌드 방법을 단계별로 안내합니다. 쉽고 빠른 Enact 개발 환경 구축을 위한 필수 가이드.
필요조건
✔ Node 10 LTS 이상
node.js 설치
1. 터미널창 열기
2. curl 설치
$ sudo apt-get install -y curl
3. node.js 설치
$ sudo apt update
$ sudo apt install node.js
4. 설치 확인
설치된 node.js 버전 확인
$ nodejs -v
반응형
Node Package Manager 설치
1. npm 설치
$ sudo apt install npm
2. 설치 확인
설치된 npm 버전 확인
$ npm -v
Enact 설치
1. npm을 통한 설치
$ npm install -g @enact/cli
2. 설치 확인
설치된 enact 버전 확인
$ enact -v
VS Code 설치
1. Microsoft GPG key 다운로드 후 /etc/apt/trusted.gpg.d/. 경로에 복사
$ sudo sh -c 'curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg'
2. 레퍼지토리 추가
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
3. 패키지 리스트 초기화
$ sudo apt update
4. VS code 설치
$ sudo apt install code
Git 설치
1. 패키지 리스트 초기화
$ sudo apt update
2. Git 설치
$ sudo apt install git
3. 설치 확인
설치된 git 버전 확인
$ git --version
SSH 공개키 생성
1. 공개키 설치 확인
$ cd ~/.ssh
$ ls
✔ ‘id_dsa’ 혹은 ‘id_rsa’ 확인
✔ id_dsa.pub
2. SSH 공개키 생성
1. 생성 커맨드 입력
$ ssh-keygen
2. 키 저장경로 입력
3. 비밀번호 두 번 입력
4. 키 생성 확인
5. Git 서버 관리자에게 공개 키 전송
$ cat ~/.ssh/id_rsa.pub
Enact 프로젝트 빌드
1. clone된 프로젝트 폴더로 이동
$ cd [folder]
2. Npm 설치
$ npm install -P
3. 프로젝트 빌드
$ enact pack -p -i -s -l=tv
댓글