Homebrew 설치
/usr/bin/ruby -e "$(curl -fsSl https://raw.githubusercontent.com/Homebrew/install/master/install)"
nvm 설치
- node.js 버전 관리 툴
- node.js의 버전 업데이트를 하거나 프로젝트 별로 버전이 다른 node.js를 사용하기 위해서
sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
- 환경설정
# ~/.bsah_profile 에 아래와 같이 추가 (macos 기준)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
node 설치
- nvm이 설치되었다는 가정하에서아래와 같이 최신 버전으로 설치
nvm install --lts
yarn 설치
brew update
brew install yarn
yarn config set prefix ~/.yarn
echo 'export PATH="$(yarn global bin):$PATH"' >> ~/.bash_profile
'Web 개발 > React' 카테고리의 다른 글
[React ] Routing 사용 예제 (Route, Link) (0) | 2020.02.09 |
---|---|
[React] 새로운 프로젝트 생성시 무조건 ESLint, Prettier 적용 (자동으로 코드 포맷 설정) (0) | 2020.02.09 |
[React] VS Code 유용한 확장 프로그램 (0) | 2020.02.09 |
[React] 절대경로로 모듈 import 하는 방법 (0) | 2020.02.04 |
[React] Context를 사용해야 하는 이유와 사례 ( vs props) (0) | 2020.02.02 |