git clone git://github.com/creationix/nvm.git ~/.nvm source ~/.nvm/nvm.sh nvm install v10 nvm use v10
/.profile末尾に以下を追加
source ~/.nvm/nvm.sh