LoginSignup
2
3

More than 3 years have passed since last update.

コピペ爆速で各言語環境を構築する方法

Last updated at Posted at 2019-10-29

とりあえずさくっと言語環境だけ入れたいことはままある。ググるのすらめんどくさい!なので、各言語ごとにコピペ(大事!)で出来る環境構築方法をまとめる。※随時更新予定

対応言語

  • Node.js
  • Ruby

Node.js

git clone git://github.com/creationix/nvm.git ~/.nvm
echo 'source ~/.nvm/nvm.sh' >> ~/.bashrc
nvm help
nvm ls-remote
nvm install v10.16.3
node -v
npm install yarn -g

Ruby

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build 
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
rbenv --version
rbenv install --list
rbenv install 2.6.5
rbenv global 2.6.5

参考サイト

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3