Skip to content

Instantly share code, notes, and snippets.

@sigmadream
Last active December 13, 2021 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigmadream/1cae7b2a7f0a0d499ef5627788888ce8 to your computer and use it in GitHub Desktop.
Save sigmadream/1cae7b2a7f0a0d499ef5627788888ce8 to your computer and use it in GitHub Desktop.

Ruby, Node.js 개발 환경 설정

Ruby(>=3) 환경 설정

rbenv 설치

$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
$ echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
$ sudo apt install curl

// ruby-build
$ mkdir -p "$(rbenv root)"/plugins
$ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

rbenv를 활용해서 Ruby 설치

// 터미널 종 후 재실행
$ rbenv install 3.0.3
$ rbenv rehash
$ rbenv global 3.0.3

Node.js 환경 설정

NVM 설치

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# (END) 이후 종료는 키보드의 `q`를 입력

NVM을 사용한 Node.js 설치

$ nvm ls-remote --lts
$ nvm install 16.13.1
$ nvm use 16.13.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment